public function addAllowedMethod($class, $method)
    {
        if (!isset($this->allowedMethods[$class])) {
            $this->allowedMethods[$class] = [];
        }
        $this->allowedMethods[$class][] = strtolower($method);
    }
public function addAllowedMethod($class, $method)
    {
        if (!isset($this->allowedMethods[$class])) {
            $this->allowedMethods[$class] = [];
        }
        $this->allowedMethods[$class][] = strtolower($method);
    }
public function addAllowedMethod ( $ class , $ method ) { if ( ! isset ( $ this -> allowedMethods [ $ class ] ) ) { $ this -> allowedMethods [ $ class ] = [ ] ; } $ this -> allowedMethods [ $ class ] [ ] = strtolower ( $ method ) ; }
Add class method allowed by this policy.

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