PHP Class FactoryGirl\Provider\Doctrine\EntityDef

Show file Open project: breerly/factory-girl-php Class Usage Examples

Public Methods

Method Description
__construct ( EntityManager $em, $name, $type, array $fieldDefs, array $config )
getConfig ( ) : array Returns the extra configuration array of the entity definition.
getEntityMetadata ( ) : Doctrine\ORM\Mapping\ClassMetadata Returns the Doctrine metadata for the entity to be created.
getEntityType ( ) : string Returns the fully qualified name of the entity class.
getFieldDefs ( ) Returns the fielde definition callbacks.
getName ( ) : string Returns the name of the entity definition.

Private Methods

Method Description
defaultDefsFromMetadata ( )
ensureInvokable ( $f )
normalizeFieldDef ( $def )
readFieldDefs ( array $params )

Method Details

__construct() public method

public __construct ( EntityManager $em, $name, $type, array $fieldDefs, array $config )
$em Doctrine\ORM\EntityManager
$fieldDefs array
$config array

getConfig() public method

Returns the extra configuration array of the entity definition.
public getConfig ( ) : array
return array

getEntityMetadata() public method

Returns the Doctrine metadata for the entity to be created.
public getEntityMetadata ( ) : Doctrine\ORM\Mapping\ClassMetadata
return Doctrine\ORM\Mapping\ClassMetadata

getEntityType() public method

Returns the fully qualified name of the entity class.
public getEntityType ( ) : string
return string

getFieldDefs() public method

Returns the fielde definition callbacks.
public getFieldDefs ( )

getName() public method

Returns the name of the entity definition.
public getName ( ) : string
return string