1 | <?php |
||
26 | final class Interface_ implements Element |
||
27 | // @codingStandardsIgnoreEnd |
||
28 | { |
||
29 | /** |
||
30 | * @var Fqsen Full Qualified Structural Element Name |
||
31 | */ |
||
32 | private $fqsen; |
||
33 | |||
34 | /** |
||
35 | * @var DocBlock|null |
||
36 | */ |
||
37 | private $docBlock; |
||
38 | |||
39 | /** |
||
40 | * @var Constant[] |
||
41 | */ |
||
42 | private $constants = []; |
||
43 | |||
44 | /** |
||
45 | * @var Method[] |
||
46 | */ |
||
47 | private $methods = []; |
||
48 | |||
49 | /** |
||
50 | * @var Fqsen[] |
||
51 | */ |
||
52 | private $parents = []; |
||
53 | |||
54 | /** |
||
55 | * @var Location |
||
56 | */ |
||
57 | private $location; |
||
58 | |||
59 | /** |
||
60 | * Initializes the object. |
||
61 | * |
||
62 | * @param Fqsen[] $parents |
||
63 | */ |
||
64 | 2 | public function __construct( |
|
79 | |||
80 | /** |
||
81 | * Returns the constants of this interface. |
||
82 | * |
||
83 | * @return Constant[] |
||
84 | */ |
||
85 | 1 | public function getConstants(): array |
|
89 | |||
90 | /** |
||
91 | * Add constant to this interface. |
||
92 | */ |
||
93 | 1 | public function addConstant(Constant $constant): void |
|
97 | |||
98 | /** |
||
99 | * Returns the methods in this interface. |
||
100 | * |
||
101 | * @return Method[] |
||
102 | */ |
||
103 | 1 | public function getMethods(): array |
|
107 | |||
108 | /** |
||
109 | * Add method to this interface. |
||
110 | */ |
||
111 | 1 | public function addMethod(Method $method): void |
|
115 | |||
116 | /** |
||
117 | * Returns the Fqsen of the element. |
||
118 | */ |
||
119 | 1 | public function getFqsen(): Fqsen |
|
123 | |||
124 | /** |
||
125 | * Returns the name of the element. |
||
126 | */ |
||
127 | public function getName(): string |
||
131 | |||
132 | /** |
||
133 | * Returns the DocBlock of this interface if available. |
||
134 | */ |
||
135 | 1 | public function getDocBlock(): ?DocBlock |
|
139 | |||
140 | /** |
||
141 | * Returns the Fqsen of the interfaces this interface is extending. |
||
142 | * |
||
143 | * @return Fqsen[] |
||
144 | */ |
||
145 | public function getParents(): array |
||
149 | |||
150 | public function getLocation(): Location |
||
154 | } |
||
155 |