@@ 324-344 (lines=21) @@ | ||
321 | } |
|
322 | } |
|
323 | ||
324 | private function generateReturn() |
|
325 | { |
|
326 | $return = $this->getGeneratorProperty('return'); |
|
327 | ||
328 | if (is_array($return)) { |
|
329 | if ($this->addEmptyLine) { |
|
330 | $this->addContent(' *'); |
|
331 | $this->addEmptyLine = false; |
|
332 | } |
|
333 | ||
334 | $line = $this->getLineGenerator(' * @return'); |
|
335 | ||
336 | if (!empty($return['type_hints'])) { |
|
337 | $line->add(implode('|', $return['type_hints'])); |
|
338 | } |
|
339 | if (strlen($return['comment']) > 0) { |
|
340 | $line->add($return['comment']); |
|
341 | } |
|
342 | $this->addContent($line); |
|
343 | } |
|
344 | } |
|
345 | ||
346 | private function generateSees() |
|
347 | { |
|
@@ 395-412 (lines=18) @@ | ||
392 | } |
|
393 | } |
|
394 | ||
395 | private function generateVariable() |
|
396 | { |
|
397 | $variable = $this->getGeneratorProperty('variable'); |
|
398 | ||
399 | if (is_array($variable)) { |
|
400 | if ($this->addEmptyLine) { |
|
401 | $this->addContent(' *'); |
|
402 | $this->addEmptyLine = false; |
|
403 | } |
|
404 | ||
405 | $line = $this->getLineGenerator(' * @var'); |
|
406 | if (!empty($variable['type_hints'])) { |
|
407 | $line->add(implode('|', $variable['type_hints'])); |
|
408 | } |
|
409 | $line->add('$' . $variable['name']); |
|
410 | $this->addContent($line); |
|
411 | } |
|
412 | } |
|
413 | ||
414 | private function generateVersion() |
|
415 | { |