Blame view

src/vendor/1.2.5/Phalcon/Annotations/Collection.php 2.16 KB
1ea3b987   Administrator   maby first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
  <?php 
  
  namespace Phalcon\Annotations {
  
  	/**
  	 * Phalcon\Annotations\Collection
  	 *
  	 * Represents a collection of annotations. This class allows to traverse a group of annotations easily
  	 *
  	 *<code>
  	 * //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');
  	 *</code>
  	 */
  	
  	class Collection implements \Iterator, \Traversable, \Countable {
  
  		protected $_position;
  
  		protected $_annotations;
  
  		/**
  		 * \Phalcon\Annotations\Collection constructor
  		 *
  		 * @param array $reflectionData
  		 */
  		public function __construct($reflectionData=null){ }
  
  
  		/**
  		 * Returns the number of annotations in the collection
  		 *
  		 * @return int
  		 */
  		public function count(){ }
  
  
  		/**
  		 * Rewinds the internal iterator
  		 */
  		public function rewind(){ }
  
  
  		/**
  		 * Returns the current annotation in the iterator
  		 *
  		 * @return \Phalcon\Annotations\Annotation
  		 */
  		public function current(){ }
  
  
  		/**
  		 * Returns the current position/key in the iterator
  		 *
  		 * @return int
  		 */
  		public function key(){ }
  
  
  		/**
  		 * Moves the internal iteration pointer to the next position
  		 *
  		 */
  		public function next(){ }
  
  
  		/**
  		 * Check if the current annotation in the iterator is valid
  		 *
  		 * @return boolean
  		 */
  		public function valid(){ }
  
  
  		/**
  		 * Returns the internal annotations as an array
  		 *
  		 * @return \Phalcon\Annotations\Annotation[]
  		 */
  		public function getAnnotations(){ }
  
  
  		/**
  		 * Returns the first annotation that match a name
  		 *
  		 * @param string $name
  		 * @return \Phalcon\Annotations\Annotation
  		 */
  		public function get($name){ }
  
  
  		/**
  		 * Returns all the annotations that match a name
  		 *
  		 * @param string $name
  		 * @return \Phalcon\Annotations\Annotation[]
  		 */
  		public function getAll($name){ }
  
  
  		/**
  		 * Check if an annotation exists in a collection
  		 *
  		 * @param string $name
  		 * @return boolean
  		 */
  		public function has($name){ }
  
  	}
  }