Skip to content

Commit 811de93

Browse files
authored
add category reflection methods
1 parent bc20935 commit 811de93

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Reflection/Reflection.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,24 @@ public function isInternal(): bool
323323
return ! empty($this->getTags('internal'));
324324
}
325325

326+
public function hasCategories(): bool
327+
{
328+
return ! empty($this->getCategories());
329+
}
330+
326331
public function hasExamples(): bool
327332
{
328333
return ! empty($this->getExamples());
329334
}
330335

336+
/**
337+
* @return array[]
338+
*/
339+
public function getCategories(): array
340+
{
341+
return $this->getTags('category');
342+
}
343+
331344
/**
332345
* @return array[]
333346
*/

0 commit comments

Comments
 (0)