Example #1
0
 /**
  * Set class file description.
  *
  * @param array $description Collection of class file description lines
  *
  * @return ClassGenerator
  */
 public function defDescription(array $description) : ClassGenerator
 {
     $commentsGenerator = new CommentsGenerator($this);
     foreach ($description as $line) {
         $commentsGenerator->defLine($line);
     }
     $this->fileDescription = $commentsGenerator->code();
     return $this;
 }