original_string: public function setAction($action)
      {
          if (!is_string($action) && !is_callable($action)) {
              throw new \LogicException(sprintf('Route action given "%s" is invalid. String or Callable expected.', gettype($action)));
          }
          $this->action = $action;
          
          return $this;
      }
code: public function setAction($action)
      {
          if (!is_string($action) && !is_callable($action)) {
              throw new \LogicException(sprintf('Route action given "%s" is invalid. String or Callable expected.', gettype($action)));
          }
          $this->action = $action;
          
          return $this;
      }
code_tokens: public function setAction ( $ action ) { if ( ! is_string ( $ action ) && ! is_callable ( $ action ) ) { throw new \ LogicException ( sprintf ( 'Route action given "%s" is invalid. String or Callable expected.' , gettype ( $ action ) ) ) ; } $ this -> action = $ action ; return $ this ; }
docstring: Set action callback
  
  @param string|\callable $action
  @return Route
  @throws \LogicException
docstring_tokens: Set action callback