« MongoDB\BSON\Unserializable::bsonUnserialize
MongoDB\BSON\BinaryInterface::getData »

The MongoDB\BSON\BinaryInterface interface

(mongodb >=1.3.0)

はじめに

This interface is implemented by MongoDB\BSON\Binary to be used as a parameter, return, or property type in userland classes.

クラス概要

class MongoDB\BSON\BinaryInterface {
/* メソッド */
abstract public function getData(): string
abstract public function getType(): int
abstract public function __toString(): string
}

変更履歴

バージョン 説明
PECL mongodb 2.0.0 Return types previously declared as tentative are now enforced.
PECL mongodb 1.15.0 Return types for methods are declared as tentative on PHP 8.0 and newer, triggering deprecation notices in code that implements this interface without declaring the appropriate return types. The #[ReturnTypeWillChange] attribute can be added to silence the deprecation notice.

目次

関連キーワード:
MongoDB   BinaryInterface   interface   getData   mongodb   abstract   types   return   type   getType   toString   Return   declared   tentative   deprecation   Unserializable   bsonUnserialize   implemented   Binary   used   parameter   property   userland   classes   概要
関連する関数・ページ:
mongodb-bson-binaryinterface.tostring   mongodb-bson-binaryinterface.getdata   mongodb-bson-binaryinterface.gettype   class.mongodb-bson-unserializable   class.mongodb-bson-decimal128interface   class.mongodb-bson-serializable