1 | <?php |
||
24 | final class Interface_ implements Element |
||
25 | // @codingStandardsIgnoreEnd |
||
26 | { |
||
27 | /** |
||
28 | * @var Fqsen Full Qualified Structural Element Name |
||
29 | */ |
||
30 | private $fqsen; |
||
31 | |||
32 | /** |
||
33 | * @var DocBlock|null |
||
34 | */ |
||
35 | private $docBlock; |
||
36 | |||
37 | /** @var Constant[] $constants */ |
||
38 | protected $constants = array(); |
||
39 | |||
40 | /** @var Method[] $methods */ |
||
41 | protected $methods = array(); |
||
42 | |||
43 | /** @var Fqsen[] $parents */ |
||
44 | protected $parents = array(); |
||
45 | |||
46 | /** |
||
47 | * @var Location |
||
48 | */ |
||
49 | private $location; |
||
50 | |||
51 | /** |
||
52 | * Initializes the object. |
||
53 | * |
||
54 | * @param Fqsen $fqsen |
||
55 | * @param Fqsen[] $parents |
||
56 | * @param DocBlock $docBlock |
||
57 | */ |
||
58 | 2 | public function __construct( |
|
73 | |||
74 | /** |
||
75 | * Returns the constants of this interface. |
||
76 | * |
||
77 | * @return Constant[] |
||
78 | */ |
||
79 | 1 | public function getConstants() |
|
83 | |||
84 | /** |
||
85 | * Add constant to this interface. |
||
86 | * |
||
87 | * @param Constant $constant |
||
88 | * @return void |
||
89 | */ |
||
90 | 1 | public function addConstant(Constant $constant) |
|
94 | |||
95 | /** |
||
96 | * Returns the methods in this interface. |
||
97 | * |
||
98 | * @return Method[] |
||
99 | */ |
||
100 | 1 | public function getMethods() |
|
104 | |||
105 | /** |
||
106 | * Add method to this interface. |
||
107 | * |
||
108 | * @param Method $method |
||
109 | * @return void |
||
110 | */ |
||
111 | 1 | public function addMethod(Method $method) |
|
115 | |||
116 | /** |
||
117 | * Returns the Fqsen of the element. |
||
118 | * |
||
119 | * @return Fqsen |
||
120 | */ |
||
121 | 1 | public function getFqsen() |
|
125 | |||
126 | /** |
||
127 | * Returns the name of the element. |
||
128 | * |
||
129 | * @return string |
||
130 | */ |
||
131 | public function getName() |
||
135 | |||
136 | /** |
||
137 | * Returns the DocBlock of this interface if available. |
||
138 | * |
||
139 | * @return null|DocBlock |
||
140 | */ |
||
141 | 1 | public function getDocBlock() |
|
145 | |||
146 | /** |
||
147 | * Returns the Fqsen of the interfaces this interface is extending. |
||
148 | * |
||
149 | * @return Fqsen[] |
||
150 | */ |
||
151 | public function getParents() |
||
155 | |||
156 | /** |
||
157 | * @return Location |
||
158 | */ |
||
159 | public function getLocation() |
||
163 | } |
||
164 |