AdapterAbstract   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getProfiler() 0 4 1
A setProfiler() 0 4 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