PHP 클래스 MongoCode

상속: implements Alcaeus\MongoDbAdapter\TypeInterface
파일 보기 프로젝트 열기: alcaeus/mongo-php-adapter 1 사용 예제들

공개 메소드들

메소드 설명
__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