Completed
Push — master ( 8aac64...6ed379 )
by Iman
16:55 queued 13:14
created

BaseSituation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 17
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A hasMethod() 0 3 1
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 26
    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 26
        return false;
14
    }
15
16
    /**
17
     * HeyMan constructor.
18
     *
19
     * @param Chain $chain
20
     */
21 103
    public function __construct(Chain $chain)
22
    {
23 103
        $this->chain = $chain;
24 103
    }
25
}
26