Exemplo n.º 1
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() : ''));
     }
 }
Exemplo n.º 2
0
 /** @test */
 public function itShouldGetDescription()
 {
     $doc = new DocBlock();
     $doc->setDescription('FooBar');
     $this->assertSame('FooBar', $doc->getDescription());
 }