original_string: public function canJumpToState($state)
      {
          if ($state instanceof StateInterface) {
              $state = $state->getName();
          }
  
          // assert that the given state exists
          $this->getState($state);
  
          return in_array($this->currentState->getName(), $this->statePrecedence[$state], true);
      }
code: public function canJumpToState($state)
      {
          if ($state instanceof StateInterface) {
              $state = $state->getName();
          }
  
          // assert that the given state exists
          $this->getState($state);
  
          return in_array($this->currentState->getName(), $this->statePrecedence[$state], true);
      }
code_tokens: public function canJumpToState ( $ state ) { if ( $ state instanceof StateInterface ) { $ state = $ state -> getName ( ) ; } // assert that the given state exists $ this -> getState ( $ state ) ; return in_array ( $ this -> currentState -> getName ( ) , $ this -> statePrecedence [ $ state ] , true ) ; }
docstring: Tells if moving to the given state is allowed.
  
  @param string|StateInterface $state
  
  @return bool
docstring_tokens: Tells if moving to the given state is allowed .