AdapterAbstract::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * @author @fabfuel <[email protected]>
4
 * @created 14.11.14, 06:57 
5
 */
6
namespace Fabfuel\Prophiler\Adapter;
7
8
use Fabfuel\Prophiler\ProfilerInterface;
9
10
abstract class AdapterAbstract
11
{
12
    /**
13
     * @var ProfilerInterface
14
     */
15
    protected $profiler;
16
17 5
    public function __construct(ProfilerInterface $profiler)
18
    {
19 5
        $this->setProfiler($profiler);
20 5
    }
21
22
    /**
23
     * @return ProfilerInterface
24
     */
25 1
    public function getProfiler()
26
    {
27 1
        return $this->profiler;
28
    }
29
30
    /**
31
     * @param ProfilerInterface $profiler
32
     */
33 4
    public function setProfiler(ProfilerInterface $profiler)
34
    {
35 4
        $this->profiler = $profiler;
36 4
    }
37
}
38