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