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

BasicFilter::getIdentifier()   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
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