protected function prepareAnnotations(DocBlock $block) { if (!$block->hasDescription()) { $block->setInline(true); } if ($block->hasAnnotations()) { $block->unshiftAnnotation(null); } $block->unshiftAnnotation('var', $this->type); }
/** * writeDoc * * @param Writer $writer * * @return void */ protected function prepareDoc(DocBlock $doc) { if ($this->tagAutogenerated()) { $doc->setDescription($this->getAutoGenerateTag() . ($doc->hasDescription() ? PHP_EOL . $doc->getDescription() : '')); } }
/** * {@inheritdoc} */ protected function prepareAnnotations(DocBlock $block) { if (!$block->hasDescription()) { $block->setDescription($this->name); } foreach ($this->arguments as $argument) { $block->addParam($argument->getType(), $argument->getName()); } if ('__construct' !== $this->name) { $block->setReturn($this->type); } }