Méthode | Description | |
---|---|---|
fromLegacy ( mixed $value ) : mixed | Converts a legacy type to the new BSON type | |
isNumericArray ( array $array ) : boolean | Helper method to find out if an array has numerical indexes | |
toLegacy ( mixed $value ) : mixed | Converts a BSON type to the legacy types |
Méthode | Description | |
---|---|---|
convertBSONObjectToLegacy ( MongoDB\BSON\Type $value ) : mixed | Converter method to convert a BSON object to its legacy type | |
ensureCorrectType ( array $array, boolean $wasObject = false ) : array | MongoDB\Model\BSONArray | MongoDB\Model\BSONDocument | Converts all arrays with non-numeric keys to stdClass |
public static fromLegacy ( mixed $value ) : mixed | ||
$value | mixed | |
Résultat | mixed |
public static isNumericArray ( array $array ) : boolean | ||
$array | array | |
Résultat | boolean |