PHP Класс MongoCode

Наследование: implements Alcaeus\MongoDbAdapter\TypeInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $code, array $scope = [] )
__toString ( ) : string Returns this code as a string
toBSONType ( ) : MongoDB\BSON\Javascript Converts this MongoCode to the new BSON JavaScript type

Описание методов

__construct() публичный Метод

public __construct ( string $code, array $scope = [] )
$code string A string of code
$scope array The scope to use for the code

__toString() публичный Метод

Returns this code as a string
public __toString ( ) : string
Результат string

toBSONType() публичный Метод

Converts this MongoCode to the new BSON JavaScript type
public toBSONType ( ) : MongoDB\BSON\Javascript
Результат MongoDB\BSON\Javascript