Overview

Namespaces

  • LeanMapper
    • Bridges
      • Nette
        • DI
    • Exception
    • Reflection
    • Relationship

Classes

  • Caller
  • Connection
  • DataDifference
  • DefaultEntityFactory
  • DefaultEntityReflectionProvider
  • DefaultMapper
  • Entity
  • EntityDataDecoder
  • Events
  • Filtering
  • FilteringResult
  • FilteringResultDecorator
  • Fluent
  • ImplicitFilters
  • Repository
  • Result
  • ResultProxy
  • Row

Interfaces

  • IEntityFactory
  • IEntityReflectionProvider
  • IMapper
  • Overview
  • Namespace
  • Class

Class DefaultEntityFactory

Default IEntityFactory implementation

LeanMapper\DefaultEntityFactory implements LeanMapper\IEntityFactory
Namespace: LeanMapper
Author: Vojtěch Kohout
Located at LeanMapper/DefaultEntityFactory.php
Methods summary
public LeanMapper\Entity
# createEntity( string $entityClass, LeanMapper\Row|Traversable|array|null $arg = null )

Creates entity instance from given entity class name and argument

Creates entity instance from given entity class name and argument

Parameters

$entityClass
$arg

Returns

LeanMapper\Entity

Implementation of

LeanMapper\IEntityFactory::createEntity()
public mixed
# createCollection( array $entities )

Allows wrap set of entities in custom collection

Allows wrap set of entities in custom collection

Parameters

$entities

Returns

mixed

Implementation of

LeanMapper\IEntityFactory::createCollection()
tharos/leanmapper v3.4.1 API documentation API documentation generated by ApiGen