Annotations\Collection::getAnnotations

public getAnnotations () Returns the internal annotations as an array

Annotations\Collection::getAll

public getAll (mixed $name) Returns all the annotations that match a name

Annotations\Collection::get

public get (mixed $name) Returns the first annotation that match a name

Annotations\Collection::current

public Phalcon\Annotations\Annotation current () Returns the current annotation in the iterator

Annotations\Collection::count

public count () Returns the number of annotations in the collection

Annotations\Collection

implements Iterator, Traversable, Countable Source on GitHub Represents a collection of annotations. This class allows to traverse a group of annotations easily //Traverse annotations foreach ($classAnnotations as $annotation) { echo 'Name=', $annotation->getName(), PHP_EOL; } //Check if the annotations has a specific var_dump($classAnnotations->has('Cacheable')); //Get an specific annotation in the collection $annotation = $classAnnotations->get('Cacheable'); Methods pub

Annotations\Annotation::numberArguments

public numberArguments () Returns the number of arguments that the annotation has

Annotations\Annotation::hasArgument

public boolean hasArgument (int | string $position) Returns an argument in a specific position

Annotations\Annotation::getNamedParameter

public mixed getNamedParameter (mixed $name) Returns a named parameter

Annotations\Annotation::getNamedArgument

public mixed getNamedArgument (mixed $name) Returns a named argument