PHP 인터페이스 LeanMapper\IEntityFactory

저자: Vojtěch Kohout
파일 보기 프로젝트 열기: tharos/leanmapper 0 사용 예제들

공개 메소드들

메소드 설명
createCollection ( array $entities ) : mixed Allows wrap set of entities in custom collection
createEntity ( string $entityClass, Row | Traversabl\Traversable | array | null $arg = null ) : Entity Creates entity instance from given entity class name and argument

메소드 상세

createCollection() 공개 메소드

Allows wrap set of entities in custom collection
public createCollection ( array $entities ) : mixed
$entities array
리턴 mixed

createEntity() 공개 메소드

Creates entity instance from given entity class name and argument
public createEntity ( string $entityClass, Row | Traversabl\Traversable | array | null $arg = null ) : Entity
$entityClass string
$arg Row | Traversabl\Traversable | array | null
리턴 Entity