메소드 | 설명 | |
---|---|---|
__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 toBSONType ( ) : MongoDB\BSON\Javascript | ||
리턴 | MongoDB\BSON\Javascript |