Method | Description | |
---|---|---|
__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 |
public __construct ( string $code, array $scope = [] ) | ||
$code | string | A string of code |
$scope | array | The scope to use for the code |
public __toString ( ) : string | ||
return | string |
public toBSONType ( ) : MongoDB\BSON\Javascript | ||
return | MongoDB\BSON\Javascript |