1 | <?php |
||
12 | class CallbackWrapper |
||
13 | { |
||
14 | /** |
||
15 | * @var Container |
||
16 | */ |
||
17 | protected $container; |
||
18 | /** |
||
19 | * @var callable |
||
20 | */ |
||
21 | protected $originalFactory; |
||
22 | |||
23 | 4 | public function __construct(Container $container, callable $originalFactory) |
|
24 | { |
||
25 | 4 | $this->container = $container; |
|
26 | 4 | $this->originalFactory = $originalFactory; |
|
27 | 4 | } |
|
28 | |||
29 | 3 | public function __invoke($sm) |
|
33 | } |
||
34 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.