original_string: protected function type(\DOMNode $node)
      {
          $type = null;
          if ($node instanceof \DOMText) {
              $type = WordType::TEXT;
          } elseif ($node instanceof \DOMAttr) {
              $type = WordType::VALUE;
          } else {
              throw new ParserCrawlerAfterListenerException('No word type set for this kind of node.');
          }
          return $type;
      }
code: protected function type(\DOMNode $node)
      {
          $type = null;
          if ($node instanceof \DOMText) {
              $type = WordType::TEXT;
          } elseif ($node instanceof \DOMAttr) {
              $type = WordType::VALUE;
          } else {
              throw new ParserCrawlerAfterListenerException('No word type set for this kind of node.');
          }
          return $type;
      }
code_tokens: protected function type ( \ DOMNode $ node ) { $ type = null ; if ( $ node instanceof \ DOMText ) { $ type = WordType :: TEXT ; } elseif ( $ node instanceof \ DOMAttr ) { $ type = WordType :: VALUE ; } else { throw new ParserCrawlerAfterListenerException ( 'No word type set for this kind of node.' ) ; } return $ type ; }
docstring: Get the type of the word given by this kind of node
  
  @param \DOMNode $node
  @return string
  
  @throws ParserCrawlerAfterListenerException
docstring_tokens: Get the type of the word given by this kind of node