|
@@ 61-66 (lines=6) @@
|
| 58 |
|
protected function addDocblockTag($tag, DocBlock $docBlock) { |
| 59 |
|
$tags = $docBlock->getTagsByName($tag); |
| 60 |
|
switch ($tag) { |
| 61 |
|
case 'return': |
| 62 |
|
if (count($tags) === 0) continue; |
| 63 |
|
/** @var Return_ $return */ |
| 64 |
|
$return = $tags[0]; |
| 65 |
|
$this->addMultiline(':returns: ' . $return->getType() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 66 |
|
break; |
| 67 |
|
case 'throws': |
| 68 |
|
if (count($tags) === 0) continue; |
| 69 |
|
/** @var Throws $return */ |
|
@@ 67-72 (lines=6) @@
|
| 64 |
|
$return = $tags[0]; |
| 65 |
|
$this->addMultiline(':returns: ' . $return->getType() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 66 |
|
break; |
| 67 |
|
case 'throws': |
| 68 |
|
if (count($tags) === 0) continue; |
| 69 |
|
/** @var Throws $return */ |
| 70 |
|
$return = $tags[0]; |
| 71 |
|
$this->addMultiline(':throws: ' . $return->getType() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 72 |
|
break; |
| 73 |
|
case 'since': |
| 74 |
|
if (count($tags) === 0) continue; |
| 75 |
|
/** @var Since $return */ |
|
@@ 73-78 (lines=6) @@
|
| 70 |
|
$return = $tags[0]; |
| 71 |
|
$this->addMultiline(':throws: ' . $return->getType() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 72 |
|
break; |
| 73 |
|
case 'since': |
| 74 |
|
if (count($tags) === 0) continue; |
| 75 |
|
/** @var Since $return */ |
| 76 |
|
$return = $tags[0]; |
| 77 |
|
$this->addMultiline(':since: ' . $return->getVersion() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 78 |
|
break; |
| 79 |
|
case 'deprecated': |
| 80 |
|
if (count($tags) === 0) continue; |
| 81 |
|
/** @var Deprecated $return */ |
|
@@ 79-84 (lines=6) @@
|
| 76 |
|
$return = $tags[0]; |
| 77 |
|
$this->addMultiline(':since: ' . $return->getVersion() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 78 |
|
break; |
| 79 |
|
case 'deprecated': |
| 80 |
|
if (count($tags) === 0) continue; |
| 81 |
|
/** @var Deprecated $return */ |
| 82 |
|
$return = $tags[0]; |
| 83 |
|
$this->addMultiline(':deprecated: ' . $return->getVersion() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 84 |
|
break; |
| 85 |
|
case 'see': |
| 86 |
|
if (count($tags) === 0) continue; |
| 87 |
|
/** @var See $return */ |
|
@@ 85-90 (lines=6) @@
|
| 82 |
|
$return = $tags[0]; |
| 83 |
|
$this->addMultiline(':deprecated: ' . $return->getVersion() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 84 |
|
break; |
| 85 |
|
case 'see': |
| 86 |
|
if (count($tags) === 0) continue; |
| 87 |
|
/** @var See $return */ |
| 88 |
|
$return = $tags[0]; |
| 89 |
|
$this->addMultiline(':see: ' . $return->getReference() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 90 |
|
break; |
| 91 |
|
case 'license': |
| 92 |
|
if (count($tags) === 0) continue; |
| 93 |
|
/** @var DocBlock\Tags\BaseTag $return */ |
|
@@ 91-96 (lines=6) @@
|
| 88 |
|
$return = $tags[0]; |
| 89 |
|
$this->addMultiline(':see: ' . $return->getReference() . ' ' . RstBuilder::escape($return->getDescription()), true); |
| 90 |
|
break; |
| 91 |
|
case 'license': |
| 92 |
|
if (count($tags) === 0) continue; |
| 93 |
|
/** @var DocBlock\Tags\BaseTag $return */ |
| 94 |
|
$return = $tags[0]; |
| 95 |
|
$this->addMultiline(':license: ' . RstBuilder::escape($return->getDescription()), true); |
| 96 |
|
break; |
| 97 |
|
case 'param': |
| 98 |
|
// param handling is done by subclasses since it is more that docbook parsing |
| 99 |
|
break; |