implements Iterator, Traversable, Countable
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");
Phalcon\Annotations\Collection constructor
Returns the number of annotations in the collection
Rewinds the internal iterator
Returns the current annotation in the iterator
Returns the current position/key in the iterator
Moves the internal iteration pointer to the next position
Check if the current annotation in the iterator is valid
Returns the internal annotations as an array
Returns the first annotation that match a name
Returns all the annotations that match a name
Check if an annotation exists in a collection
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Annotations_Collection.html