protected function visitDocblock(Docblock $docblock)
 {
     if (!$docblock->isEmpty() || $this->config->getGenerateEmptyDocblock()) {
         $this->writeDocblock($docblock);
     }
 }
 public function testEmpty()
 {
     $doc = new Docblock();
     $this->assertTrue($doc->isEmpty());
     $doc->setLongDescription('bla');
     $this->assertFalse($doc->isEmpty());
     $doc->setLongDescription(null);
     $this->assertTrue($doc->isEmpty());
     $doc->setShortDescription('bla');
     $this->assertFalse($doc->isEmpty());
     $doc->setShortDescription(null);
     $this->assertTrue($doc->isEmpty());
     $doc->appendTag(new SeeTag());
     $this->assertFalse($doc->isEmpty());
 }