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 | 2 | * Initializes the object. |
|
53 | * |
||
54 | 2 | * @param Fqsen $fqsen |
|
55 | 2 | * @param Fqsen[] $parents |
|
56 | 2 | * @param DocBlock $docBlock |
|
57 | 2 | */ |
|
58 | public function __construct( |
||
73 | |||
74 | /** |
||
75 | 1 | * Returns the constants of this interface. |
|
76 | * |
||
77 | 1 | * @return Constant[] |
|
78 | 1 | */ |
|
79 | public function getConstants() |
||
83 | |||
84 | /** |
||
85 | 1 | * Add constant to this interface. |
|
86 | * |
||
87 | 1 | * @param Constant $constant |
|
88 | * @return void |
||
89 | */ |
||
90 | public function addConstant(Constant $constant) |
||
94 | |||
95 | /** |
||
96 | 1 | * Returns the methods in this interface. |
|
97 | * |
||
98 | 1 | * @return Method[] |
|
99 | 1 | */ |
|
100 | public function getMethods() |
||
104 | |||
105 | /** |
||
106 | 1 | * Add method to this interface. |
|
107 | * |
||
108 | 1 | * @param Method $method |
|
109 | * @return void |
||
110 | */ |
||
111 | public function addMethod(Method $method) |
||
115 | |||
116 | /** |
||
117 | * Returns the Fqsen of the element. |
||
118 | * |
||
119 | * @return Fqsen |
||
120 | */ |
||
121 | public function getFqsen() |
||
125 | |||
126 | 1 | /** |
|
127 | * Returns the name of the element. |
||
128 | 1 | * |
|
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 | 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 |