original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Sets the HTTP Action verb
  
  @param $action string
  
  @return $this
docstring_tokens: Sets the HTTP Action verb