protected function setAction($action)
    {
        $this->action = trim(strtoupper($action));

        //	Check verb aliases, set correct action allowing for closures
        if (null !== ($alias = array_get($this->verbAliases, $this->action))) {
            //	A closure?
            if (in_array($alias, Verbs::getDefinedConstants()) || !is_callable($alias)) {
                //	Set original and work with alias
                $this->originalAction = $this->action;
                $this->action = $alias;
            }
        }

        return $this;
    }
protected function setAction($action)
    {
        $this->action = trim(strtoupper($action));

        //	Check verb aliases, set correct action allowing for closures
        if (null !== ($alias = array_get($this->verbAliases, $this->action))) {
            //	A closure?
            if (in_array($alias, Verbs::getDefinedConstants()) || !is_callable($alias)) {
                //	Set original and work with alias
                $this->originalAction = $this->action;
                $this->action = $alias;
            }
        }

        return $this;
    }
protected function setAction ( $ action ) { $ this -> action = trim ( strtoupper ( $ action ) ) ; //	Check verb aliases, set correct action allowing for closures if ( null !== ( $ alias = array_get ( $ this -> verbAliases , $ this -> action ) ) ) { //	A closure? if ( in_array ( $ alias , Verbs :: getDefinedConstants ( ) ) || ! is_callable ( $ alias ) ) { //	Set original and work with alias $ this -> originalAction = $ this -> action ; $ this -> action = $ alias ; } } return $ this ; }
Sets the HTTP Action verb

@param $action string

@return $this
Sets the HTTP Action verb