PHP 클래스 Mongolid\Serializer\Type\ObjectID

상속: implements Mongolid\Serializer\SerializableTypeInterface, implements JsonSerializabl\JsonSerializable
파일 보기 프로젝트 열기: leroy-merlin-br/mongolid 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$objectIdString string

공개 메소드들

메소드 설명
__construct ( MongoDB\BSON\ObjectID | string $mongoId = null ) Constructor.
__toString ( ) : string Returns the hexidecimal representation of this ObjectID.
convert ( ) : MongoDB\BSON\ObjectID
jsonSerialize ( ) : string
serialize ( ) : string
unserialize ( mixed $data ) : void

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( MongoDB\BSON\ObjectID | string $mongoId = null )
$mongoId MongoDB\BSON\ObjectID | string MongoDB ObjectID or a string.

__toString() 공개 메소드

Returns the hexidecimal representation of this ObjectID.
public __toString ( ) : string
리턴 string

convert() 공개 메소드

public convert ( ) : MongoDB\BSON\ObjectID
리턴 MongoDB\BSON\ObjectID

jsonSerialize() 공개 메소드

public jsonSerialize ( ) : string
리턴 string

serialize() 공개 메소드

public serialize ( ) : string
리턴 string

unserialize() 공개 메소드

public unserialize ( mixed $data ) : void
$data mixed Serialized string to parse.
리턴 void

프로퍼티 상세

$objectIdString 보호되어 있는 프로퍼티

protected string $objectIdString
리턴 string