| @@ 217-234 (lines=18) @@ | ||
| 214 | return $this->generateStringFromContent(); |
|
| 215 | } |
|
| 216 | ||
| 217 | private function generateAuthor() |
|
| 218 | { |
|
| 219 | $author = $this->getGeneratorProperty('author'); |
|
| 220 | ||
| 221 | if (is_array($author)) { |
|
| 222 | if ($this->addEmptyLine) { |
|
| 223 | $this->addContent(' *'); |
|
| 224 | $this->addEmptyLine = false; |
|
| 225 | } |
|
| 226 | ||
| 227 | $line = $this->getLineGenerator(' * @author ' . $author['name']); |
|
| 228 | ||
| 229 | if (strlen($author['email']) > 0) { |
|
| 230 | $line->add('<' . $author['email'] . '>'); |
|
| 231 | } |
|
| 232 | $this->addContent($line); |
|
| 233 | } |
|
| 234 | } |
|
| 235 | ||
| 236 | private function generateClass() |
|
| 237 | { |
|
| @@ 414-430 (lines=17) @@ | ||
| 411 | } |
|
| 412 | } |
|
| 413 | ||
| 414 | private function generateVersion() |
|
| 415 | { |
|
| 416 | $version = $this->getGeneratorProperty('version'); |
|
| 417 | ||
| 418 | if (is_array($version)) { |
|
| 419 | if ($this->addEmptyLine) { |
|
| 420 | $this->addContent(' *'); |
|
| 421 | $this->addEmptyLine = false; |
|
| 422 | } |
|
| 423 | ||
| 424 | $line = $this->getLineGenerator(' * @version ' . $version['number']); |
|
| 425 | if (strlen($version['description']) > 0) { |
|
| 426 | $line->add($version['description']); |
|
| 427 | } |
|
| 428 | $this->addContent($line); |
|
| 429 | } |
|
| 430 | } |
|
| 431 | } |
|
| 432 | ||