PHP Interface LeanMapper\IEntityFactory

Author: Vojtěch Kohout
Afficher le fichier Open project: tharos/leanmapper Interface Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

createCollection() public méthode

Allows wrap set of entities in custom collection
public createCollection ( array $entities ) : mixed
$entities array
Résultat mixed

createEntity() public méthode

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
Résultat Entity