Annotation.php
1.73 KB
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
<?php
namespace Phalcon\Annotations {
/**
* Phalcon\Annotations\Annotation
*
* Represents a single annotation in an annotations collection
*/
class Annotation {
protected $_name;
protected $_arguments;
protected $_exprArguments;
/**
* \Phalcon\Annotations\Annotation constructor
*
* @param array $reflectionData
*/
public function __construct($reflectionData){ }
/**
* Returns the annotation's name
*
* @return string
*/
public function getName(){ }
/**
* Resolves an annotation expression
*
* @param array $expr
* @return mixed
*/
public function getExpression($expr){ }
/**
* Returns the expression arguments without resolving
*
* @return array
*/
public function getExprArguments(){ }
/**
* Returns the expression arguments
*
* @return array
*/
public function getArguments(){ }
/**
* Returns the number of arguments that the annotation has
*
* @return int
*/
public function numberArguments(){ }
/**
* Returns an argument in a specific position
*
* @return mixed
*/
public function getArgument($position){ }
/**
* Checks if the annotation has a specific argument
*
* @return bool
*/
public function hasArgument($position){ }
/**
* Returns a named argument
*
* @param string $name
* @return mixed
*/
public function getNamedArgument($position){ }
/**
* Returns a named argument (deprecated)
*
* @deprecated
* @param string $name
* @return mixed
*/
public function getNamedParameter($position){ }
/**
* Checks if the annotation has a specific named argument
*
* @return boolean
*/
public function hasNamedArgument($position){ }
}
}