PHP Class DMS\Filter\Mapping\ClassMetadataFactory

Inheritance: implements DMS\Filter\Mapping\ClassMetadataFactoryInterface
Show file Open project: rdohms/dms-filter Class Usage Examples

Protected Properties

Property Type Description
$cache Doctrine\Common\Cache\Cache
$loader DMS\Filter\Mapping\Loader\LoaderInterface
$parsedClasses array

Public Methods

Method Description
__construct ( DMS\Filter\Mapping\Loader\LoaderInterface $loader, Doctrine\Common\Cache\Cache $cache = null ) Constructor Receives a Loader and a Doctrine Compatible cache instance
getClassMetadata ( $class ) {@inheritDoc}

Protected Methods

Method Description
loadInterfaceMetadata ( DMS\Filter\Mapping\ClassMetadataInterface $metadata ) Checks if the object has interfaces and cascades parsing of annotatiosn to all the interfaces
loadParentMetadata ( DMS\Filter\Mapping\ClassMetadataInterface $metadata ) Checks if the class being parsed has a parent and cascades parsing to its parent

Private Methods

Method Description
getParsedClass ( string $class ) : DMS\Filter\Mapping\ClassMetadataInterface Retrieves data from a class already parsed
isParsed ( string $class ) : boolean Checks if a class has already been parsed
parseClassMetadata ( string $class ) : DMS\Filter\Mapping\ClassMetadataInterface Reads class metadata for a new and unparsed class
setParsedClass ( string $class, DMS\Filter\Mapping\ClassMetadataInterface $metadata ) Stores data from a parsed class

Method Details

__construct() public method

Constructor Receives a Loader and a Doctrine Compatible cache instance
public __construct ( DMS\Filter\Mapping\Loader\LoaderInterface $loader, Doctrine\Common\Cache\Cache $cache = null )
$loader DMS\Filter\Mapping\Loader\LoaderInterface
$cache Doctrine\Common\Cache\Cache

getClassMetadata() public method

{@inheritDoc}
public getClassMetadata ( $class )

loadInterfaceMetadata() protected method

Checks if the object has interfaces and cascades parsing of annotatiosn to all the interfaces
protected loadInterfaceMetadata ( DMS\Filter\Mapping\ClassMetadataInterface $metadata )
$metadata DMS\Filter\Mapping\ClassMetadataInterface

loadParentMetadata() protected method

Checks if the class being parsed has a parent and cascades parsing to its parent
protected loadParentMetadata ( DMS\Filter\Mapping\ClassMetadataInterface $metadata )
$metadata DMS\Filter\Mapping\ClassMetadataInterface

Property Details

$cache protected property

protected Cache,Doctrine\Common\Cache $cache
return Doctrine\Common\Cache\Cache

$loader protected property

protected LoaderInterface,DMS\Filter\Mapping\Loader $loader
return DMS\Filter\Mapping\Loader\LoaderInterface

$parsedClasses protected property

protected array $parsedClasses
return array