yii\apidoc\models\BaseDoc::getFirstTag PHP Method

getFirstTag() public method

Get the first tag of a given name
Since: 2.0.5
public getFirstTag ( string $name ) : Tag
$name string
return phpDocumentor\Reflection\DocBlock\Tag
    public function getFirstTag($name)
    {
        foreach ($this->tags as $i => $tag) {
            if (strtolower($tag->getName()) == $name) {
                return $this->tags[$i];
            }
        }
    }