DMS\Filter\Mapping\ClassMetadataInterface::getPropertyRules PHP Method

getPropertyRules() public method

Retrieve s list of filtering rules attached to a property
public getPropertyRules ( string $property ) : array
$property string
return array
    public function getPropertyRules($property);

Usage Example

Example #1
0
 /**
  * {@inheritDoc}
  */
 public function mergeRules(ClassMetadataInterface $metadata)
 {
     foreach ($metadata->getFilteredProperties() as $property) {
         foreach ($metadata->getPropertyRules($property) as $rule) {
             $this->addPropertyRule($property, clone $rule);
         }
     }
 }