Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 850b167

Browse files
pepakrizJanTvrdik
authored andcommitted
PhpDocNode: add getThrowsTagValues() (#12)
1 parent aa22c2f commit 850b167

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎src/Ast/PhpDoc/PhpDocNode.php‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@ public function getReturnTagValues(): array
8484
}
8585

8686

87+
/**
88+
* @return ThrowsTagValueNode[]
89+
*/
90+
public function getThrowsTagValues(): array
91+
{
92+
return array_column(
93+
array_filter($this->getTagsByName('@throws'), function (PhpDocTagNode $tag): bool {
94+
return $tag->value instanceof ThrowsTagValueNode;
95+
}),
96+
'value'
97+
);
98+
}
99+
100+
87101
/**
88102
* @return PropertyTagValueNode[]
89103
*/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /