@@ -57,7 +57,6 @@ |
||
| 57 | 57 | * Container builder constructor. |
| 58 | 58 | * |
| 59 | 59 | * @param Generator $generator PHP code generator |
| 60 | - * @param ClassMetadata[] $classMetadata Collection of classes metadata for container |
|
| 61 | 60 | */ |
| 62 | 61 | public function __construct(Generator $generator) |
| 63 | 62 | { |
@@ -267,7 +267,7 @@ |
||
| 267 | 267 | /** |
| 268 | 268 | * Convert xml to array |
| 269 | 269 | * |
| 270 | - * @param $xmlObject |
|
| 270 | + * @param \SimpleXMLElement $xmlObject |
|
| 271 | 271 | * @param array $out |
| 272 | 272 | * @return array |
| 273 | 273 | */ |
@@ -6,27 +6,27 @@ |
||
| 6 | 6 | */ |
| 7 | 7 | namespace samsonframework\container\definition\resolver\xml; |
| 8 | 8 | |
| 9 | -use samsonframework\container\definition\builder\DefinitionBuilder; |
|
| 10 | -use samsonframework\container\definition\ClassDefinition; |
|
| 11 | -use samsonframework\container\definition\exception\ClassDefinitionAlreadyExistsException; |
|
| 12 | -use samsonframework\container\definition\exception\MethodDefinitionAlreadyExistsException; |
|
| 13 | -use samsonframework\container\definition\exception\ParameterDefinitionAlreadyExistsException; |
|
| 14 | -use samsonframework\container\definition\exception\PropertyDefinitionAlreadyExistsException; |
|
| 15 | -use samsonframework\container\definition\MethodDefinition; |
|
| 16 | -use samsonframework\container\definition\parameter\exception\ParameterAlreadyExistsException; |
|
| 17 | -use samsonframework\container\definition\reference\BoolReference; |
|
| 18 | -use samsonframework\container\definition\reference\ClassReference; |
|
| 19 | -use samsonframework\container\definition\reference\CollectionItem; |
|
| 20 | -use samsonframework\container\definition\reference\CollectionReference; |
|
| 21 | -use samsonframework\container\definition\reference\ConstantReference; |
|
| 22 | -use samsonframework\container\definition\reference\FloatReference; |
|
| 23 | -use samsonframework\container\definition\reference\IntegerReference; |
|
| 24 | -use samsonframework\container\definition\reference\NullReference; |
|
| 25 | -use samsonframework\container\definition\reference\ParameterReference; |
|
| 26 | -use samsonframework\container\definition\reference\ReferenceInterface; |
|
| 27 | -use samsonframework\container\definition\reference\ServiceReference; |
|
| 28 | -use samsonframework\container\definition\reference\StringReference; |
|
| 29 | -use samsonframework\container\definition\resolver\exception\FileNotFoundException; |
|
| 9 | +use samsonframework\container\definition\builder\DefinitionBuilder; |
|
| 10 | +use samsonframework\container\definition\ClassDefinition; |
|
| 11 | +use samsonframework\container\definition\exception\ClassDefinitionAlreadyExistsException; |
|
| 12 | +use samsonframework\container\definition\exception\MethodDefinitionAlreadyExistsException; |
|
| 13 | +use samsonframework\container\definition\exception\ParameterDefinitionAlreadyExistsException; |
|
| 14 | +use samsonframework\container\definition\exception\PropertyDefinitionAlreadyExistsException; |
|
| 15 | +use samsonframework\container\definition\MethodDefinition; |
|
| 16 | +use samsonframework\container\definition\parameter\exception\ParameterAlreadyExistsException; |
|
| 17 | +use samsonframework\container\definition\reference\BoolReference; |
|
| 18 | +use samsonframework\container\definition\reference\ClassReference; |
|
| 19 | +use samsonframework\container\definition\reference\CollectionItem; |
|
| 20 | +use samsonframework\container\definition\reference\CollectionReference; |
|
| 21 | +use samsonframework\container\definition\reference\ConstantReference; |
|
| 22 | +use samsonframework\container\definition\reference\FloatReference; |
|
| 23 | +use samsonframework\container\definition\reference\IntegerReference; |
|
| 24 | +use samsonframework\container\definition\reference\NullReference; |
|
| 25 | +use samsonframework\container\definition\reference\ParameterReference; |
|
| 26 | +use samsonframework\container\definition\reference\ReferenceInterface; |
|
| 27 | +use samsonframework\container\definition\reference\ServiceReference; |
|
| 28 | +use samsonframework\container\definition\reference\StringReference; |
|
| 29 | +use samsonframework\container\definition\resolver\exception\FileNotFoundException; |
|
| 30 | 30 | use samsonframework\container\definition\resolver\exception\ReferenceNotImplementsException; |
| 31 | 31 | |
| 32 | 32 | /** |
@@ -15,8 +15,6 @@ |
||
| 15 | 15 | use samsonframework\container\definition\exception\MethodDefinitionNotFoundException; |
| 16 | 16 | use samsonframework\container\definition\exception\ParameterDefinitionAlreadyExistsException; |
| 17 | 17 | use samsonframework\container\definition\exception\PropertyDefinitionNotFoundException; |
| 18 | -use samsonframework\container\definition\MethodDefinition; |
|
| 19 | -use samsonframework\container\definition\PropertyDefinition; |
|
| 20 | 18 | use samsonframework\container\definition\reference\ServiceReference; |
| 21 | 19 | |
| 22 | 20 | /** |
@@ -6,9 +6,9 @@ |
||
| 6 | 6 | */ |
| 7 | 7 | namespace samsonframework\container\definition\analyzer\annotation; |
| 8 | 8 | |
| 9 | -use samsonframework\container\definition\analyzer\DefinitionAnalyzer; |
|
| 10 | -use samsonframework\container\definition\analyzer\MethodAnalyzerInterface; |
|
| 11 | -use samsonframework\container\definition\ClassDefinition; |
|
| 9 | +use samsonframework\container\definition\analyzer\DefinitionAnalyzer; |
|
| 10 | +use samsonframework\container\definition\analyzer\MethodAnalyzerInterface; |
|
| 11 | +use samsonframework\container\definition\ClassDefinition; |
|
| 12 | 12 | use samsonframework\container\definition\exception\MethodDefinitionAlreadyExistsException; |
| 13 | 13 | |
| 14 | 14 | class AnnotationMethodAnalyzer extends AbstractAnnotationAnalyzer implements MethodAnalyzerInterface |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use samsonframework\container\definition\parameter\ParameterBuilder; |
| 16 | 16 | use samsonframework\container\definition\parameter\ParameterBuilderInterface; |
| 17 | 17 | use samsonframework\container\definition\reference\ClassReference; |
| 18 | -use samsonframework\container\definition\reference\ReferenceDependencyInterface; |
|
| 19 | 18 | use samsonframework\container\definition\reference\ReferenceInterface; |
| 20 | 19 | |
| 21 | 20 | /** |
@@ -6,22 +6,22 @@ |
||
| 6 | 6 | */ |
| 7 | 7 | namespace samsonframework\container\definition\builder; |
| 8 | 8 | |
| 9 | -use samsonframework\container\definition\ClassDefinition; |
|
| 10 | -use samsonframework\container\definition\builder\exception\ReferenceNotImplementsException; |
|
| 11 | -use samsonframework\container\definition\MethodDefinition; |
|
| 12 | -use samsonframework\container\definition\PropertyDefinition; |
|
| 13 | -use samsonframework\container\definition\reference\BoolReference; |
|
| 14 | -use samsonframework\container\definition\reference\ClassReference; |
|
| 15 | -use samsonframework\container\definition\reference\CollectionReference; |
|
| 16 | -use samsonframework\container\definition\reference\ConstantReference; |
|
| 17 | -use samsonframework\container\definition\reference\FloatReference; |
|
| 18 | -use samsonframework\container\definition\reference\IntegerReference; |
|
| 19 | -use samsonframework\container\definition\reference\NullReference; |
|
| 20 | -use samsonframework\container\definition\reference\ParameterReference; |
|
| 21 | -use samsonframework\container\definition\reference\ReferenceInterface; |
|
| 22 | -use samsonframework\container\definition\reference\ServiceReference; |
|
| 23 | -use samsonframework\container\definition\reference\StringReference; |
|
| 24 | -use samsonframework\generator\ClassGenerator; |
|
| 9 | +use samsonframework\container\definition\ClassDefinition; |
|
| 10 | +use samsonframework\container\definition\builder\exception\ReferenceNotImplementsException; |
|
| 11 | +use samsonframework\container\definition\MethodDefinition; |
|
| 12 | +use samsonframework\container\definition\PropertyDefinition; |
|
| 13 | +use samsonframework\container\definition\reference\BoolReference; |
|
| 14 | +use samsonframework\container\definition\reference\ClassReference; |
|
| 15 | +use samsonframework\container\definition\reference\CollectionReference; |
|
| 16 | +use samsonframework\container\definition\reference\ConstantReference; |
|
| 17 | +use samsonframework\container\definition\reference\FloatReference; |
|
| 18 | +use samsonframework\container\definition\reference\IntegerReference; |
|
| 19 | +use samsonframework\container\definition\reference\NullReference; |
|
| 20 | +use samsonframework\container\definition\reference\ParameterReference; |
|
| 21 | +use samsonframework\container\definition\reference\ReferenceInterface; |
|
| 22 | +use samsonframework\container\definition\reference\ServiceReference; |
|
| 23 | +use samsonframework\container\definition\reference\StringReference; |
|
| 24 | +use samsonframework\generator\ClassGenerator; |
|
| 25 | 25 | use samsonframework\generator\MethodGenerator; |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * Get scope from definition |
| 168 | 168 | * |
| 169 | 169 | * @param string $id |
| 170 | - * @return mixed |
|
| 170 | + * @return AbstractScope |
|
| 171 | 171 | * @throws ScopeNotFoundException |
| 172 | 172 | */ |
| 173 | 173 | public function getScope(string $id): AbstractScope |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | /** |
| 202 | - * @param string|ClassReference $className |
|
| 202 | + * @param ClassReference $className |
|
| 203 | 203 | * @return ClassDefinition |
| 204 | 204 | * @throws \InvalidArgumentException |
| 205 | 205 | */ |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | /** |
| 321 | 321 | * Get property definition |
| 322 | 322 | * |
| 323 | - * @param $propertyName |
|
| 323 | + * @param string $propertyName |
|
| 324 | 324 | * @return PropertyDefinition |
| 325 | 325 | * @throws PropertyDefinitionNotFoundException |
| 326 | 326 | */ |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | /** |
| 347 | 347 | * Get method definition |
| 348 | 348 | * |
| 349 | - * @param $methodName |
|
| 349 | + * @param string $methodName |
|
| 350 | 350 | * @return MethodDefinition |
| 351 | 351 | * @throws MethodDefinitionNotFoundException |
| 352 | 352 | */ |
@@ -10,8 +10,6 @@ |
||
| 10 | 10 | use samsonframework\container\definition\exception\MethodDefinitionNotFoundException; |
| 11 | 11 | use samsonframework\container\definition\exception\PropertyDefinitionNotFoundException; |
| 12 | 12 | use samsonframework\container\definition\reference\ClassReference; |
| 13 | -use samsonframework\container\definition\reference\ReferenceInterface; |
|
| 14 | -use samsonframework\container\definition\reference\ServiceReference; |
|
| 15 | 13 | use samsonframework\container\definition\scope\AbstractScope; |
| 16 | 14 | use samsonframework\container\definition\exception\MethodDefinitionAlreadyExistsException; |
| 17 | 15 | use samsonframework\container\definition\exception\PropertyDefinitionAlreadyExistsException; |
@@ -15,10 +15,7 @@ |
||
| 15 | 15 | use samsonframework\container\definition\exception\MethodDefinitionNotFoundException; |
| 16 | 16 | use samsonframework\container\definition\exception\ParameterDefinitionAlreadyExistsException; |
| 17 | 17 | use samsonframework\container\definition\exception\PropertyDefinitionNotFoundException; |
| 18 | -use samsonframework\container\definition\MethodDefinition; |
|
| 19 | -use samsonframework\container\definition\PropertyDefinition; |
|
| 20 | 18 | use samsonframework\container\definition\reference\ParameterReference; |
| 21 | -use samsonframework\container\definition\reference\ServiceReference; |
|
| 22 | 19 | |
| 23 | 20 | /** |
| 24 | 21 | * Injection annotation parameter. |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | * |
| 186 | 186 | * @param DefinitionBuilder $definitionBuilder |
| 187 | 187 | * @param string $interfaceName |
| 188 | - * @return string |
|
| 188 | + * @return ReferenceInterface |
|
| 189 | 189 | * @throws ImplementerForTypeNotFoundException |
| 190 | 190 | * TODO Add interface resolvers functionality |
| 191 | 191 | */ |