1 | <?php |
||
2 | /* |
||
3 | * @copyright (c) 2019 Mendel <[email protected]> |
||
4 | * @license see license.txt |
||
5 | */ |
||
6 | |||
7 | namespace drycart\di\tests\dummy; |
||
8 | use drycart\di\MagicStoreTrait; |
||
9 | |||
10 | /** |
||
11 | * Description of Dummy3 |
||
12 | * |
||
13 | * @author mendel |
||
14 | */ |
||
15 | class DummyComplex implements DummyInterface |
||
16 | { |
||
17 | use MagicStoreTrait; |
||
18 | |||
19 | public function __construct(?int $intDummy, ?string $notExist, $noTypeParameter = 1, string $defaultString = 'DefaultString') |
||
20 | { |
||
21 | $this->_store(get_defined_vars()); |
||
22 | } |
||
23 | |||
24 | public function method(Dummy $dummy, ?int $i) : Dummy |
||
0 ignored issues
–
show
|
|||
25 | { |
||
26 | return $dummy; |
||
27 | } |
||
28 | |||
29 | public function whoAmI() |
||
30 | { |
||
31 | return get_class($this); |
||
32 | } |
||
33 | } |
||
34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.