Phraseanet PHP SDK API
Class

PhraseanetSDK\Repository\Factory

class Factory

Methods

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

Construct a new entity object

Details

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

Construct a new entity object

Parameters

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

Return Value

EntityInterface

Exceptions

InvalidArgumentException when types is unknown