@@ -25,6 +25,9 @@ discard block |
||
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $containerVariable |
|
| 30 | + */ |
|
| 28 | 31 | public static function dumpArguments($argumentsValues, $containerVariable, array $usedVariables) { |
| 29 | 32 | $arguments = []; |
| 30 | 33 | $prependedCode = []; |
@@ -41,6 +44,9 @@ discard block |
||
| 41 | 44 | return new InlineEntry($argumentsCode, $prependedCodeString, $usedVariables); |
| 42 | 45 | } |
| 43 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $containerVariable |
|
| 49 | + */ |
|
| 44 | 50 | private static function dumpArray(array $value, $containerVariable, array $usedVariables) { |
| 45 | 51 | $code = array(); |
| 46 | 52 | $prependCode = array(); |
@@ -58,6 +64,9 @@ discard block |
||
| 58 | 64 | return new InlineEntry(sprintf('array(%s)', implode(', ', $code)), implode("\n", $prependCode), $usedVariables); |
| 59 | 65 | } |
| 60 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $containerVariable |
|
| 69 | + */ |
|
| 61 | 70 | private static function dumpDefinition(DumpableInterface $definition, $containerVariable, array $usedVariables) { |
| 62 | 71 | // If the identifier is null, we must inline the definition. |
| 63 | 72 | if ($definition->getIdentifier() === null) { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | 24 | * @param string $identifier |
| 25 | - * @param DefinitionInterface|mixed $definition |
|
| 25 | + * @param DefinitionInterface $definition |
|
| 26 | 26 | * @return AliasDefinition|FactoryCallDefinition|ObjectDefinition|ParameterDefinition |
| 27 | 27 | */ |
| 28 | 28 | public function convert($identifier, $definition) |
@@ -64,7 +64,6 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * @param string $serviceName |
| 67 | - * @param ServiceProvider $serviceProvider |
|
| 68 | 67 | * @param int $serviceProviderKey |
| 69 | 68 | * @param callable $callable |
| 70 | 69 | * @throws \TheCodingMachine\Yaco\CompilerException |
@@ -122,11 +121,12 @@ discard block |
||
| 122 | 121 | } |
| 123 | 122 | |
| 124 | 123 | /** |
| 125 | - * @param $serviceName |
|
| 124 | + * @param string $serviceName |
|
| 126 | 125 | * @param int $serviceProviderKey |
| 127 | 126 | * @param callable $callable |
| 128 | 127 | * @param ContainerDefinition $containerDefinition |
| 129 | 128 | * @param CallbackWrapperDefinition|null $callbackWrapperDefinition |
| 129 | + * @param string $decoratedServiceName |
|
| 130 | 130 | * @return DumpableInterface |
| 131 | 131 | */ |
| 132 | 132 | private function getServiceDefinitionFromCallable($decoratedServiceName, $serviceName, $serviceProviderKey, callable $callable, ContainerDefinition $containerDefinition, CallbackWrapperDefinition $callbackWrapperDefinition = null) { |