Exemplo n.º 1
0
 public function visitStruct(ClassLike $node)
 {
     $struct = $this->getStruct();
     $struct->setName($node->name);
     if (($doc = $node->getDocComment()) !== null) {
         $struct->setDocblock($doc->getReformattedText());
         $docblock = $struct->getDocblock();
         $struct->setDescription($docblock->getShortDescription());
         $struct->setLongDescription($docblock->getLongDescription());
     }
 }
 /**
  * {@inheritDoc}
  */
 public function getDocComment()
 {
     $docComment = $this->classLikeNode->getDocComment();
     return $docComment ? $docComment->getText() : false;
 }