Passed
Push — master ( e05dd3...01a0a7 )
by Nils
02:57
created

BasicDecorator   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getIdentifier() 0 3 1
A setCheck() 0 3 1
A getCheck() 0 3 1
1
<?php
2
3
namespace Leankoala\HealthFoundation\Decorator;
4
5
use Leankoala\HealthFoundation\Check\Check;
6
7
abstract class BasicDecorator implements Decorator
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