Zephir\Documentation\Docblock::getAnnotationsByType PHP Method

getAnnotationsByType() public method

public getAnnotationsByType ( string $type ) : Zephir\Documentation\Annotation[]
$type string the annotation name you want to get
return Zephir\Documentation\Annotation[] an array containing the annotations matching the name
    public function getAnnotationsByType($type)
    {
        $annotations = array();
        foreach ($this->annotations as $an) {
            if ($an->getName() == $type) {
                $annotations[] = $an;
            }
        }
        return $annotations;
    }