original_string: public function hasAllowableAction(Action $action)
      {
          $currentAllowableActions = $this->getAllowableActions();
          if ($currentAllowableActions === null || count($currentAllowableActions->getAllowableActions()) === 0) {
              throw new IllegalStateException('Allowable Actions are not available!');
          }
  
          return in_array($action, $currentAllowableActions->getAllowableActions(), false);
      }
code: public function hasAllowableAction(Action $action)
      {
          $currentAllowableActions = $this->getAllowableActions();
          if ($currentAllowableActions === null || count($currentAllowableActions->getAllowableActions()) === 0) {
              throw new IllegalStateException('Allowable Actions are not available!');
          }
  
          return in_array($action, $currentAllowableActions->getAllowableActions(), false);
      }
code_tokens: public function hasAllowableAction ( Action $ action ) { $ currentAllowableActions = $ this -> getAllowableActions ( ) ; if ( $ currentAllowableActions === null || count ( $ currentAllowableActions -> getAllowableActions ( ) ) === 0 ) { throw new IllegalStateException ( 'Allowable Actions are not available!' ) ; } return in_array ( $ action , $ currentAllowableActions -> getAllowableActions ( ) , false ) ; }
docstring: Checks if the given action is an allowed action for the object
  
  @param Action $action
  @return boolean
docstring_tokens: Checks if the given action is an allowed action for the object