Ejemplo n.º 1
0
 protected function prepareAnnotations(DocBlock $block)
 {
     if (!$block->hasDescription()) {
         $block->setInline(true);
     }
     if ($block->hasAnnotations()) {
         $block->unshiftAnnotation(null);
     }
     $block->unshiftAnnotation('var', $this->type);
 }
Ejemplo n.º 2
0
 /**
  * writeDoc
  *
  * @param Writer $writer
  *
  * @return void
  */
 protected function prepareDoc(DocBlock $doc)
 {
     if ($this->tagAutogenerated()) {
         $doc->setDescription($this->getAutoGenerateTag() . ($doc->hasDescription() ? PHP_EOL . $doc->getDescription() : ''));
     }
 }
Ejemplo n.º 3
0
 /**
  * {@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);
     }
 }