@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * |
| 213 | 213 | * @param string $nid The normalized ID of the container item. |
| 214 | 214 | * @param array $rule The resolved rule for the ID. |
| 215 | - * @return callable Returns a function that when called will create a new instance of the class. |
|
| 215 | + * @return \Closure Returns a function that when called will create a new instance of the class. |
|
| 216 | 216 | * @throws NotFoundException No entry was found for this identifier. |
| 217 | 217 | */ |
| 218 | 218 | private function makeFactory($nid, array $rule) { |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | * @param array $defaultArgs The default arguments from {@link Container::makeDefaultArgs()}. |
| 357 | 357 | * @param array $args The arguments passed into a creation. |
| 358 | 358 | * @param mixed $instance An object instance if the arguments are being resolved on an already constructed object. |
| 359 | - * @return array Returns an array suitable to be applied to a function call. |
|
| 359 | + * @return null|callable Returns an array suitable to be applied to a function call. |
|
| 360 | 360 | */ |
| 361 | 361 | private function resolveArgs(array $defaultArgs, array $args, $instance = null) { |
| 362 | 362 | $args = array_change_key_case($args); |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | return $this->name; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $name |
|
| 32 | + */ |
|
| 30 | 33 | public function setName($name) { |
| 31 | 34 | $this->name = $name; |
| 32 | 35 | } |