ClientProfilableTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setClientProfiler() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the MobileNotifBundle package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace LinkValue\MobileNotifBundle\Profiler;
11
12
/**
13
 * Trait which provides tools to profile a client implementation.
14
 *
15
 * @package MobileNotifBundle
16
 * @author Oliver Thebault <[email protected]>
17
 */
18
trait ClientProfilableTrait
19
{
20
    /**
21
     * @var ClientProfilerInterface $clientProfiler
22
     */
23
    protected $clientProfiler;
24
25
    /**
26
     * Constructor.
27
     *
28
     * @param ClientProfilerInterface $clientProfiler
29
     *
30
     * @return self
31
     */
32
    public function setClientProfiler(ClientProfilerInterface $clientProfiler)
33
    {
34
        $this->clientProfiler = $clientProfiler;
35
36
        return $this;
37
    }
38
}
39