Passed
Push — master ( e3a8e9...fa6d7a )
by Nils
05:20 queued 10s
created

BasicFilter   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 20
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCheck() 0 3 1
A getIdentifier() 0 3 1
A setCheck() 0 3 1
1
<?php
2
3
namespace Leankoala\HealthFoundation\Filter;
4
5
use Leankoala\HealthFoundation\Check\Check;
6
7
abstract class BasicFilter implements Filter
8
{
9
    /**
10
     * @var Check
11
     */
12
    private $check;
13
14
    public function getIdentifier()
15
    {
16
        return $this->check->getIdentifier();
17
    }
18
19
    public function setCheck(Check $check)
20
    {
21
        $this->check = $check;
22
    }
23
24
    protected function getCheck()
25
    {
26
        return $this->check;
27
    }
28
}
29