Completed
Push — master ( 29d79e...8aac64 )
by Iman
09:16
created

BaseSituation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Imanghafoori\HeyMan\Situations;
4
5
use Imanghafoori\HeyMan\Chain;
6
7
abstract class BaseSituation
8
{
9
    protected $chain;
10
11
    public function hasMethod($method)
0 ignored issues
show
Unused Code introduced by
The parameter $method 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

11
    public function hasMethod(/** @scrutinizer ignore-unused */ $method)

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...
12
    {
13
        return false;
14
    }
15
16
    /**
17
     * HeyMan constructor.
18
     *
19 103
     * @param Chain $chain
20
     */
21 103
    public function __construct(Chain $chain)
22 103
    {
23
        $this->chain = $chain;
24
    }
25
}
26