PHP Interface DMS\Filter\Mapping\ClassMetadataInterface

Afficher le fichier Open project: rdohms/dms-filter Interface Usage Examples

Méthodes publiques

Méthode Description
addPropertyRule ( string $property, Rule $rule ) Adds a new rule to a property
getClassName ( ) : string Get name of class represented in this Metadata object
getFilteredProperties ( ) : array Retrieve a list of the object's properties that have filters attached to them
getPropertyRules ( string $property ) : array Retrieve s list of filtering rules attached to a property
getReflectionClass ( ) : ReflectionClas\ReflectionClass Returns a ReflectionClass instance for this class.
mergeRules ( DMS\Filter\Mapping\ClassMetadataInterface $metadata ) Merges rules from another metadata object into this one

Method Details

addPropertyRule() public méthode

Adds a new rule to a property
public addPropertyRule ( string $property, Rule $rule )
$property string
$rule DMS\Filter\Rules\Rule

getClassName() public méthode

Get name of class represented in this Metadata object
public getClassName ( ) : string
Résultat string

getFilteredProperties() public méthode

Retrieve a list of the object's properties that have filters attached to them
public getFilteredProperties ( ) : array
Résultat array

getPropertyRules() public méthode

Retrieve s list of filtering rules attached to a property
public getPropertyRules ( string $property ) : array
$property string
Résultat array

getReflectionClass() public méthode

Returns a ReflectionClass instance for this class.
public getReflectionClass ( ) : ReflectionClas\ReflectionClass
Résultat ReflectionClas\ReflectionClass

mergeRules() public méthode

Merges rules from another metadata object into this one
public mergeRules ( DMS\Filter\Mapping\ClassMetadataInterface $metadata )
$metadata DMS\Filter\Mapping\ClassMetadataInterface