Completed
Push — master ( 29d79e...8aac64 )
by Iman
09:16
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
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A hasMethod() 0 3 1
A __construct() 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
    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