PHP 클래스 Mongolid\Serializer\Type\Converter

파일 보기 프로젝트 열기: leroy-merlin-br/mongolid 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$mappedTypes string[]

공개 메소드들

메소드 설명
__construct ( ) Constructor.
toDomainTypes ( array $data ) : mixed Unconverts recursively the given objects (probably retrieved from MongoDB) to our specific types.
toMongoTypes ( array $data ) : mixed Converts recursively the given data to persistable objects into database.

보호된 메소드들

메소드 설명
getReflectionClass ( mixed $className ) : mixed Returns the mapped type of the given className.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

getReflectionClass() 보호된 메소드

Returns the mapped type of the given className.
protected getReflectionClass ( mixed $className ) : mixed
$className mixed Name of the class to return.
리턴 mixed

toDomainTypes() 공개 메소드

Example: converts MongoDB\BSON\ObjectID to Type\ObjectID
public toDomainTypes ( array $data ) : mixed
$data array Array to convert.
리턴 mixed

toMongoTypes() 공개 메소드

Example: converts Type\ObjectID to MongoDB\BSON\ObjectID.
public toMongoTypes ( array $data ) : mixed
$data array Array to convert.
리턴 mixed

프로퍼티 상세

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

protected string[] $mappedTypes
리턴 string[]