1 | <?php |
||
37 | class InterfaceDefinition extends AbstractStructureDefinition |
||
38 | { |
||
39 | |||
40 | /** |
||
41 | * @const string TYPE The structure type |
||
42 | */ |
||
43 | const TYPE = 'interface'; |
||
44 | |||
45 | /** |
||
46 | * The parent interfaces (if any) |
||
47 | * |
||
48 | * @var string $extends |
||
49 | */ |
||
50 | protected $extends; |
||
51 | |||
52 | /** |
||
53 | * Possible constants the interface defines |
||
54 | * |
||
55 | * @var array $constants |
||
56 | */ |
||
57 | protected $constants; |
||
58 | |||
59 | /** |
||
60 | * Default constructor |
||
61 | * |
||
62 | * TODO The constructor does not use all members |
||
|
|||
63 | * |
||
64 | * @param string $docBlock DocBlock header of the interface |
||
65 | * @param string $name $name Interface name |
||
66 | * @param string $namespace The namespace the definition resides in |
||
67 | * @param array $extends The parent interfaces (if any) |
||
68 | * @param array $constants Possible constants the interface defines |
||
69 | * @param AssertionList|null $invariantConditions Invariant conditions |
||
70 | * @param AssertionList|null $ancestralInvariants Ancestral invariants |
||
71 | * @param FunctionDefinitionList|null $functionDefinitions List of functions defined within the interface |
||
72 | */ |
||
73 | public function __construct( |
||
94 | |||
95 | /** |
||
96 | * Getter method for attribute $constants |
||
97 | * |
||
98 | * @return array |
||
99 | */ |
||
100 | public function getConstants() |
||
104 | |||
105 | /** |
||
106 | * Will return a list of all dependencies eg. parent class, interfaces and traits. |
||
107 | * |
||
108 | * @return array |
||
109 | */ |
||
110 | public function getDependencies() |
||
122 | |||
123 | /** |
||
124 | * Getter method for attribute $extends |
||
125 | * |
||
126 | * @return string |
||
127 | */ |
||
128 | public function getExtends() |
||
132 | |||
133 | /** |
||
134 | * Setter method for attribute $ancestralInvariants |
||
135 | * |
||
136 | * @param \AppserverIo\Doppelgaenger\Entities\Lists\AssertionList $ancestralInvariants Inherited invariant assertions |
||
137 | * |
||
138 | * @return null |
||
139 | */ |
||
140 | public function setAncestralInvariants(AssertionList $ancestralInvariants) |
||
144 | |||
145 | /** |
||
146 | * Setter method for the $constants property |
||
147 | * |
||
148 | * @param array $constants Constants the class defines |
||
149 | * |
||
150 | * @return null |
||
151 | */ |
||
152 | public function setConstants($constants) |
||
156 | |||
157 | /** |
||
158 | * Setter method for the $extends property |
||
159 | * |
||
160 | * @param string $extends Potential parent class |
||
161 | * |
||
162 | * @return null |
||
163 | */ |
||
164 | public function setExtends($extends) |
||
168 | |||
169 | /** |
||
170 | * Setter method for attribute $invariantConditions |
||
171 | * |
||
172 | * @param \AppserverIo\Doppelgaenger\Entities\Lists\AssertionList $invariantConditions List of invariant assertions |
||
173 | * |
||
174 | * @return null |
||
175 | */ |
||
176 | public function setInvariantConditions(AssertionList $invariantConditions) |
||
180 | } |
||
181 |