We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc20935 commit 811de93Copy full SHA for 811de93
src/Reflection/Reflection.php
@@ -323,11 +323,24 @@ public function isInternal(): bool
323
return ! empty($this->getTags('internal'));
324
}
325
326
+ public function hasCategories(): bool
327
+ {
328
+ return ! empty($this->getCategories());
329
+ }
330
+
331
public function hasExamples(): bool
332
{
333
return ! empty($this->getExamples());
334
335
336
+ /**
337
+ * @return array[]
338
+ */
339
+ public function getCategories(): array
340
341
+ return $this->getTags('category');
342
343
344
/**
345
* @return array[]
346
*/
0 commit comments