Completed
Push — master ( 2d7c4c...dda5fd )
by Max
03:40
created

DummyComplex::whoAmI()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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
Unused Code introduced by
The parameter $i is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

24
    public function method(Dummy $dummy, /** @scrutinizer ignore-unused */ ?int $i) : Dummy

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
    {
26
        return $dummy;
27
    }
28
    
29
    public function whoAmI()
30
    {
31
        return get_class($this);
32
    }
33
}
34