Blame view

src/vendor/1.2.5/Phalcon/Annotations/Reflection.php 1.65 KB
ef60cd4d   Administrator   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
  <?php 
  
  namespace Phalcon\Annotations {
  
  	/**
  	 * Phalcon\Annotations\Reflection
  	 *
  	 * Allows to manipulate the annotations reflection in an OO manner
  	 *
  	 *<code>
  	 * //Parse the annotations in a class
  	 * $reader = new \Phalcon\Annotations\Reader();
  	 * $parsing = $reader->parse('MyComponent');
  	 *
  	 * //Create the reflection
  	 * $reflection = new \Phalcon\Annotations\Reflection($parsing);
  	 *
  	 * //Get the annotations in the class docblock
  	 * $classAnnotations = $reflection->getClassAnnotations();
  	 *</code>
  	 */
  	
  	class Reflection {
  
  		protected $_reflectionData;
  
  		protected $_classAnnotations;
  
  		protected $_methodAnnotations;
  
  		protected $_propertyAnnotations;
  
  		/**
  		 * \Phalcon\Annotations\Reflection constructor
  		 *
  		 * @param array $reflectionData
  		 */
  		public function __construct($reflectionData=null){ }
  
  
  		/**
  		 * Returns the annotations found in the class docblock
  		 *
  		 * @return \Phalcon\Annotations\Collection
  		 */
  		public function getClassAnnotations(){ }
  
  
  		/**
  		 * Returns the annotations found in the methods' docblocks
  		 *
  		 * @return \Phalcon\Annotations\Collection[]
  		 */
  		public function getMethodsAnnotations(){ }
  
  
  		/**
  		 * Returns the annotations found in the properties' docblocks
  		 *
  		 * @return \Phalcon\Annotations\Collection[]
  		 */
  		public function getPropertiesAnnotations(){ }
  
  
  		/**
  		 * Returns the raw parsing intermediate definitions used to construct the reflection
  		 *
  		 * @return array
  		 */
  		public function getReflectionData(){ }
  
  
  		/**
  		 * Restores the state of a \Phalcon\Annotations\Reflection variable export
  		 *
  		 * @return array $data
  		 */
  		public static function __set_state($data){ }
  
  	}
  }