Phraseanet PHP SDK API
Class

PhraseanetSDK\Entity\Factory

class Factory

Methods

static EntityInterface build(string $type, EntityManager $em)

Construct a new entity object

Details

at line 56
static public EntityInterface build(string $type, EntityManager $em)

Construct a new entity object

Parameters

string $type the type of the entity
EntityManager $em the entity manager

Return Value

EntityInterface

Exceptions

InvalidArgumentException when types is unknown