protected function allowed($method)
    {
        if (in_array($method, $this->allowed) === false) {
            $message = 'Used method is not allowed';

            throw new \UnexpectedValueException($message);
        }

        return true;
    }
protected function allowed($method)
    {
        if (in_array($method, $this->allowed) === false) {
            $message = 'Used method is not allowed';

            throw new \UnexpectedValueException($message);
        }

        return true;
    }
protected function allowed ( $ method ) { if ( in_array ( $ method , $ this -> allowed ) === false ) { $ message = 'Used method is not allowed' ; throw new \ UnexpectedValueException ( $ message ) ; } return true ; }
Checks if the specified method is a valid HTTP method.

@param  string $method
@return boolean

@throws UnexpectedValueException
Checks if the specified method is a valid HTTP method .