@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | * |
190 | 190 | * @param string $string The string potentially containing a structure name |
191 | 191 | * |
192 | - * @return boolean |
|
192 | + * @return false|string |
|
193 | 193 | */ |
194 | 194 | protected function filterType($string) |
195 | 195 | { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * |
245 | 245 | * @param string $string The string potentially containing a scalar type hint |
246 | 246 | * |
247 | - * @return boolean|string |
|
247 | + * @return false|string |
|
248 | 248 | */ |
249 | 249 | protected function filterScalarType($string) |
250 | 250 | { |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | * |
274 | 274 | * @param string $string The string potentially containing a type hint for a typed collection |
275 | 275 | * |
276 | - * @return boolean|string |
|
276 | + * @return string|false |
|
277 | 277 | */ |
278 | 278 | protected function filterTypedCollection($string) |
279 | 279 | { |
@@ -199,7 +199,7 @@ |
||
199 | 199 | /** |
200 | 200 | * Setter method for the $defaultValue property |
201 | 201 | * |
202 | - * @param mixed $defaultValue Default value of the attribute |
|
202 | + * @param string|null $defaultValue Default value of the attribute |
|
203 | 203 | * |
204 | 204 | * @return null |
205 | 205 | */ |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | /** |
196 | 196 | * Getter method for attribute $ancestralInvariants |
197 | 197 | * |
198 | - * @return null|TypedListList |
|
198 | + * @return AssertionList |
|
199 | 199 | */ |
200 | 200 | public function getAncestralInvariants() |
201 | 201 | { |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | /** |
206 | 206 | * Getter method for attribute $attributeDefinitions |
207 | 207 | * |
208 | - * @return null|AttributeDefinitionList |
|
208 | + * @return AttributeDefinitionList |
|
209 | 209 | */ |
210 | 210 | public function getAttributeDefinitions() |
211 | 211 | { |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | /** |
269 | 269 | * Getter method for attribute $introductions |
270 | 270 | * |
271 | - * @return null|\AppserverIo\Doppelgaenger\Entities\Lists\IntroductionList |
|
271 | + * @return IntroductionList |
|
272 | 272 | */ |
273 | 273 | public function getIntroductions() |
274 | 274 | { |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | /** |
279 | 279 | * Getter method for attribute $invariantConditions |
280 | 280 | * |
281 | - * @return null|AssertionList |
|
281 | + * @return AssertionList |
|
282 | 282 | */ |
283 | 283 | public function getInvariantConditions() |
284 | 284 | { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * Getter method for attribute $attributeDefinitions |
96 | 96 | * |
97 | - * @return null|AttributeDefinitionList |
|
97 | + * @return AttributeDefinitionList |
|
98 | 98 | */ |
99 | 99 | public function getAttributeDefinitions() |
100 | 100 | { |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | /** |
155 | 155 | * Getter method for attribute $invariantConditions |
156 | 156 | * |
157 | - * @return null|AssertionList |
|
157 | + * @return AssertionList |
|
158 | 158 | */ |
159 | 159 | public function getInvariantConditions() |
160 | 160 | { |
@@ -103,7 +103,7 @@ |
||
103 | 103 | /** |
104 | 104 | * Getter for the $referencedPointcuts property |
105 | 105 | * |
106 | - * @return array |
|
106 | + * @return \AppserverIo\Doppelgaenger\Interfaces\PointcutInterface[] |
|
107 | 107 | */ |
108 | 108 | public function getReferencedPointcuts() |
109 | 109 | { |
@@ -454,7 +454,7 @@ |
||
454 | 454 | * |
455 | 455 | * @param string $structureName The structure we want the cache path for |
456 | 456 | * |
457 | - * @return boolean|string |
|
457 | + * @return false|string |
|
458 | 458 | */ |
459 | 459 | public function getFileName($structureName) |
460 | 460 | { |
@@ -217,7 +217,7 @@ |
||
217 | 217 | /** |
218 | 218 | * Will check the main token array for the occurrence of a certain on (class, interface or trait) |
219 | 219 | * |
220 | - * @return string|boolean |
|
220 | + * @return string|false |
|
221 | 221 | */ |
222 | 222 | protected function getStructureToken() |
223 | 223 | { |
@@ -21,13 +21,10 @@ discard block |
||
21 | 21 | namespace AppserverIo\Doppelgaenger\Parser; |
22 | 22 | |
23 | 23 | use AppserverIo\Doppelgaenger\Entities\Assertions\AssertionFactory; |
24 | -use AppserverIo\Doppelgaenger\Entities\Assertions\RawAssertion; |
|
25 | -use AppserverIo\Doppelgaenger\Entities\Assertions\TypedCollectionAssertion; |
|
26 | 24 | use AppserverIo\Doppelgaenger\Entities\Definitions\AttributeDefinition; |
27 | 25 | use AppserverIo\Doppelgaenger\Entities\Definitions\FunctionDefinition; |
28 | 26 | use AppserverIo\Doppelgaenger\Entities\Joinpoint; |
29 | 27 | use AppserverIo\Doppelgaenger\Entities\Lists\AssertionList; |
30 | -use AppserverIo\Doppelgaenger\Entities\Assertions\ChainedAssertion; |
|
31 | 28 | use AppserverIo\Doppelgaenger\Config; |
32 | 29 | use AppserverIo\Doppelgaenger\Entities\Lists\PointcutExpressionList; |
33 | 30 | use AppserverIo\Doppelgaenger\Entities\PointcutExpression; |
@@ -35,7 +32,6 @@ discard block |
||
35 | 32 | use AppserverIo\Doppelgaenger\Interfaces\AssertionInterface; |
36 | 33 | use AppserverIo\Doppelgaenger\Interfaces\PropertiedStructureInterface; |
37 | 34 | use AppserverIo\Doppelgaenger\Interfaces\StructureDefinitionInterface; |
38 | -use AppserverIo\Doppelgaenger\Dictionaries\ReservedKeywords; |
|
39 | 35 | use AppserverIo\Psr\MetaobjectProtocol\Aop\Annotations\Introduce; |
40 | 36 | use AppserverIo\Psr\MetaobjectProtocol\Dbc\Annotations\Ensures; |
41 | 37 | use AppserverIo\Psr\MetaobjectProtocol\Dbc\Annotations\Invariant; |
@@ -66,7 +66,7 @@ |
||
66 | 66 | * @param array $tokens The token array |
67 | 67 | * @param boolean $getRecursive Do we have to get the ancestral contents as well? |
68 | 68 | * |
69 | - * @return boolean|\AppserverIo\Doppelgaenger\Entities\Lists\FunctionDefinitionList |
|
69 | + * @return FunctionDefinitionList |
|
70 | 70 | */ |
71 | 71 | public function getDefinitionListFromTokens(array $tokens, $getRecursive = true) |
72 | 72 | { |