public function DocBlock::getTagsByName in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock.php \phpDocumentor\Reflection\DocBlock::getTagsByName()
Returns an array of tags matching the given name. If no tags are found an empty array is returned.
Parameters
string $name String to search by.:
Return value
Tag[]
File
- vendor/
phpdocumentor/ reflection-docblock/ src/ phpDocumentor/ Reflection/ DocBlock.php, line 381
Class
- DocBlock
- Parses the DocBlock for any structure.
Namespace
phpDocumentor\ReflectionCode
public function getTagsByName($name) {
$result = array();
/** @var Tag $tag */
foreach ($this
->getTags() as $tag) {
if ($tag
->getName() != $name) {
continue;
}
$result[] = $tag;
}
return $result;
}