Results of 1 - 10 of about 33 for Stringable (0.002 sec.)
- Stringable インターフェイス | PHP 8.3 15225
- Stringable インターフェイス (PHP 8) はじめに Stringable インターフェイスは、 特定のクラスが __toString() メソッドを実装していることを示します。 ほとんどのインターフェイスと異なり、 Stringable は、マジックメソッド __toString() が定義されてい
... のインターフェイスの一番の存在意義は、 文字列プリミティブや、 文字列にキャストできるオブジェクトを受け入れる union型 string|Stringable に対する型チェックを、関数ができるようにすることです。 インターフェイス概要 interface Stringable { /* メソッド */ public f ... unction __toString (): string } Stringable インターフェイスの例 例1 基本的な Stringable インターフェイスの使い方 以下は、 コンストラクタのプロモーション を使っていま ... す。 <?php class IPv4Address implements Stringable { public function __construct ( private string $oct1 , private string $oct2 , private string $oct3 , private string $oct4 ...
-
https://man.mtool.work/php/8.3/class.stringable.html
- Reflector インターフェイス | PHP 8.3 10684
- Reflector インターフェイス (PHP 5, PHP 7, PHP 8) はじめに Reflector は、 すべてのエクスポート可能なリフレクションクラスが実装しているインターフェイスです。 インターフェイス概要 interface Reflector extends Stringable { /* 継承したメソッド */
... public function Stringable::__toString (): string } 変更履歴 バージョン 説明 8.0.0 Reflector::export() は、削除されました。 8.0.0 Reflector は、 Stri ... ngable を継承するようになりました。 これによって Reflector::__toString() を置き換える形で、 Stringable::__toString() が継承されるようになりました。 参考 Reflector::export() 目次 Reflector::export — エクスポートする 他のマニュ ...
-
https://man.mtool.work/php/8.3/class.reflector.html
- Stringable::__toString — オブジェクトの文字列表現を取得する | PHP 8.3 10524
- Stringable::__toString (PHP 8) Stringable::__toString — オブジェクトの文字列表現を取得する 説明 public function Stringable::__toString (): string パラメータ この関数にはパラメータはありません。 戻り値 オブジェクトの文字列表現を返します。 参
...
-
https://man.mtool.work/php/8.3/stringable.tostring.html
- Throwable | PHP 8.3 8903
- Throwable (PHP 7, PHP 8) はじめに Throwable は、 throw 文でスロー可能なあらゆるオブジェクトが実装する基底インターフェイスです。 Error や Exception も、これを実装しています。 注意 : PHP のクラスが Throwable インターフェイスを直接実装すること
... はできません。 そのかわりに、 Exception を継承する必要があります。 インターフェイス概要 interface Throwable extends Stringable { /* メソッド */ public function getMessage (): string public function getCode (): int public function getFile (): string ... g public function getPrevious (): ? Throwable public function __toString (): string /* 継承したメソッド */ public function Stringable::__toString (): string } 変更履歴 バージョン 説明 8.0.0 Throwable は、 Stringable を新たに実装しました。 目次 Throwable::g ...
-
https://man.mtool.work/php/8.3/class.throwable.html
- The MongoDB\BSON\DBPointer class | PHP 8.3 8502
- The MongoDB\BSON\DBPointer class (mongodb >=1.4.0) はじめに BSON type for the "DBPointer" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON DBPointer type while converting BSON to PHP
... documents in the database. クラス概要 final class MongoDB\BSON\DBPointer implements MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final private function __construct () final public function jsonSerialize (): mixed final public function ... ージョン 説明 PECL mongodb 2.0.0 This class no longer implements the Serializable interface. PECL mongodb 1.12.0 Implements Stringable for PHP 8.0+. 目次 MongoDB\BSON\DBPointer::__construct — Construct a new DBPointer (unused) MongoDB\BSON\DBPointer::jsonSe ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-dbpointer.html
- The MongoDB\BSON\Symbol class | PHP 8.3 8502
- The MongoDB\BSON\Symbol class (mongodb >=1.4.0) はじめに BSON type for the "Symbol" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON symbol type while converting BSON to PHP, and can
... ng documents in the database. クラス概要 final class MongoDB\BSON\Symbol implements MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final private function __construct () final public function jsonSerialize (): mixed final public function ... ージョン 説明 PECL mongodb 2.0.0 This class no longer implements the Serializable interface. PECL mongodb 1.12.0 Implements Stringable for PHP 8.0+. 目次 MongoDB\BSON\Symbol::__construct — Construct a new Symbol (unused) MongoDB\BSON\Symbol::jsonSerialize — ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-symbol.html
- The MongoDB\BSON\Undefined class | PHP 8.3 8406
- The MongoDB\BSON\Undefined class (mongodb >=1.4.0) はじめに BSON type for the "Undefined" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON undefined type while converting BSON to PHP
... documents in the database. クラス概要 final class MongoDB\BSON\Undefined implements MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final private function __construct () final public function jsonSerialize (): mixed final public function ... ージョン 説明 PECL mongodb 2.0.0 This class no longer implements the Serializable interface. PECL mongodb 1.12.0 Implements Stringable for PHP 8.0+. 目次 MongoDB\BSON\Undefined::__construct — Construct a new Undefined (unused) MongoDB\BSON\Undefined::jsonSe ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-undefined.html
- The MongoDB\Driver\CursorId class | PHP 8.3 8406
- The MongoDB\Driver\CursorId class (mongodb >=1.0.0) はじめに The MongoDB\Driver\CursorID class is a value object that represents a cursor ID. Instances of this class are returned by MongoDB\Driver\Cursor::getId() . 警告 This class has been
... or::getId() to return MongoDB\BSON\Int64 instead. クラス概要 final class MongoDB\Driver\CursorId implements Serializable , Stringable { /* メソッド */ final private function __construct () final public function __toString (): string } 変更履歴 バージョン 説 ... ved. PECL mongodb 1.20.0 This class has been deprecated and will be removed in version 2.0. PECL mongodb 1.12.0 Implements Stringable for PHP 8.0+. PECL mongodb 1.7.0 Implements Serializable . 目次 MongoDB\Driver\CursorId::__construct — Create a new Cursor ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-cursorid.html
- The MongoDB\BSON\Regex class | PHP 8.3 8246
- The MongoDB\BSON\Regex class (mongodb >=1.0.0) はじめに BSON type for a regular expression pattern and optional » flags . 注意 : This BSON type is mainly used when querying the database. Alternatively, the » $regex query operator may be use
... クラス概要 final class MongoDB\BSON\Regex implements MongoDB\BSON\RegexInterface , MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final public function __construct ( string $pattern , string $flags = "" ) final public function getFlags ... ージョン 説明 PECL mongodb 2.0.0 This class no longer implements the Serializable interface. PECL mongodb 1.12.0 Implements Stringable for PHP 8.0+. PECL mongodb 1.3.0 Implements MongoDB\BSON\RegexInterface . PECL mongodb 1.2.0 Implements Serializable and J ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-regex.html
- The MongoDB\BSON\UTCDateTime class | PHP 8.3 8246
- The MongoDB\BSON\UTCDateTime class (mongodb >=1.0.0) はじめに Represents a » BSON date . The value is a 64-bit integer that represents the number of milliseconds since the Unix epoch (Jan 1, 1970). Negative values represent dates before 197
... final class MongoDB\BSON\UTCDateTime implements MongoDB\BSON\UTCDateTimeInterface , MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final public function __construct ( int | MongoDB\BSON\Int64 | DateTimeInterface | null $milliseconds = n ... ージョン 説明 PECL mongodb 2.0.0 This class no longer implements the Serializable interface. PECL mongodb 1.12.0 Implements Stringable for PHP 8.0+. PECL mongodb 1.3.0 Implements MongoDB\BSON\UTCDateTimeInterface . PECL mongodb 1.2.0 Implements Serializable ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-utcdatetime.html