@@ 157-163 (lines=7) @@ | ||
154 | * @throws ParameterDefinitionAlreadyExistsException |
|
155 | * @throws ReferenceNotImplementsException |
|
156 | */ |
|
157 | protected function resolveConstructor(ClassDefinition $classDefinition, array $constructorArray) |
|
158 | { |
|
159 | $methodDefinition = $classDefinition->defineConstructor(); |
|
160 | if (array_key_exists('arguments', $constructorArray)) { |
|
161 | $this->resolveArguments($methodDefinition, $constructorArray['arguments']); |
|
162 | } |
|
163 | } |
|
164 | ||
165 | /** |
|
166 | * Resolve property |
|
@@ 192-198 (lines=7) @@ | ||
189 | * @throws ParameterDefinitionAlreadyExistsException |
|
190 | * @throws ReferenceNotImplementsException |
|
191 | */ |
|
192 | protected function resolveMethod(ClassDefinition $classDefinition, array $methodArray, string $methodName) |
|
193 | { |
|
194 | $methodDefinition = $classDefinition->defineMethod($methodName); |
|
195 | if (array_key_exists('arguments', $methodArray)) { |
|
196 | $this->resolveArguments($methodDefinition, $methodArray['arguments']); |
|
197 | } |
|
198 | } |
|
199 | ||
200 | /** |
|
201 | * Resolve method/constructor arguments |