original_string: public function isFromRoute($routeName)
      {
          $session = $this->getSession();
  
          /** @noinspection PhpUndefinedFieldInspection */
          if ($session->data === null || !is_array($session->source)) {
              return null;
          }
  
          /** @noinspection PhpUndefinedFieldInspection */
          return $session->source['routeName'] === $routeName;
      }
code: public function isFromRoute($routeName)
      {
          $session = $this->getSession();
  
          /** @noinspection PhpUndefinedFieldInspection */
          if ($session->data === null || !is_array($session->source)) {
              return null;
          }
  
          /** @noinspection PhpUndefinedFieldInspection */
          return $session->source['routeName'] === $routeName;
      }
code_tokens: public function isFromRoute ( $ routeName ) { $ session = $ this -> getSession ( ) ; /** @noinspection PhpUndefinedFieldInspection */ if ( $ session -> data === null || ! is_array ( $ session -> source ) ) { return null ; } /** @noinspection PhpUndefinedFieldInspection */ return $ session -> source [ 'routeName' ] === $ routeName ; }
docstring: Indicates whether current data from the specified route name.
  
  @param string $routeName
  
  @return bool
  @throws \Zend\Session\Exception\InvalidArgumentException
docstring_tokens: Indicates whether current data from the specified route name .