PHP Class MongoBinData

Afficher le fichier Open project: alcaeus/mongo-php-adapter Class Usage Examples

Méthodes publiques

Свойство Type Description
$bin
$type

Méthodes publiques

Méthode Description
__construct ( string $data, integer $type = 2 ) Creates a new binary data object.
__toString ( ) : string Returns the string "". To access the contents of a MongoBinData, use the bin field.
toBSONType ( ) : MongoDB\BSON\Binary Converts this MongoBinData to the new BSON Binary type

Method Details

__construct() public méthode

Creates a new binary data object.
public __construct ( string $data, integer $type = 2 )
$data string Binary data
$type integer Data type

__toString() public méthode

Returns the string "". To access the contents of a MongoBinData, use the bin field.
public __toString ( ) : string
Résultat string

toBSONType() public méthode

Converts this MongoBinData to the new BSON Binary type
public toBSONType ( ) : MongoDB\BSON\Binary
Résultat MongoDB\BSON\Binary

Property Details