private function classMethod($doc_comment, ModifiersNode $modifiers) {
    $node = new ClassMethodNode();
    $node->mergeNode($doc_comment);
    $node->mergeNode($modifiers);
    $this->mustMatch(T_FUNCTION, $node);
    $this->tryMatch('&', $node, 'reference');
    $this->mustMatch(T_STRING, $node, 'name');
    $this->parameterList($node);
    if ($modifiers->getAbstract()) {
      $this->endStatement($node);
      return $node;
    }
    $this->matchHidden($node);
    $this->body($node);
    return $node;
  }
private function classMethod($doc_comment, ModifiersNode $modifiers) {
    $node = new ClassMethodNode();
    $node->mergeNode($doc_comment);
    $node->mergeNode($modifiers);
    $this->mustMatch(T_FUNCTION, $node);
    $this->tryMatch('&', $node, 'reference');
    $this->mustMatch(T_STRING, $node, 'name');
    $this->parameterList($node);
    if ($modifiers->getAbstract()) {
      $this->endStatement($node);
      return $node;
    }
    $this->matchHidden($node);
    $this->body($node);
    return $node;
  }
private function classMethod ( $ doc_comment , ModifiersNode $ modifiers ) { $ node = new ClassMethodNode ( ) ; $ node -> mergeNode ( $ doc_comment ) ; $ node -> mergeNode ( $ modifiers ) ; $ this -> mustMatch ( T_FUNCTION , $ node ) ; $ this -> tryMatch ( '&' , $ node , 'reference' ) ; $ this -> mustMatch ( T_STRING , $ node , 'name' ) ; $ this -> parameterList ( $ node ) ; if ( $ modifiers -> getAbstract ( ) ) { $ this -> endStatement ( $ node ) ; return $ node ; } $ this -> matchHidden ( $ node ) ; $ this -> body ( $ node ) ; return $ node ; }
Parse a class method
@param PartialNode|null $doc_comment DocBlock associated with method
@param ModifiersNode $modifiers Method modifiers
@return ClassMethodNode
Parse a class method