public function addAllowedProperty($class, $property)
    {
        if (!isset($this->allowedProperties[$class])) {
            $this->allowedProperties[$class] = [];
        }
        $this->allowedProperties[$class][] = $property;
    }
public function addAllowedProperty($class, $property)
    {
        if (!isset($this->allowedProperties[$class])) {
            $this->allowedProperties[$class] = [];
        }
        $this->allowedProperties[$class][] = $property;
    }
public function addAllowedProperty ( $ class , $ property ) { if ( ! isset ( $ this -> allowedProperties [ $ class ] ) ) { $ this -> allowedProperties [ $ class ] = [ ] ; } $ this -> allowedProperties [ $ class ] [ ] = $ property ; }
Add class property allowed by this policy.

@param string $class
@param string $property
Add class property allowed by this policy .