ClientProfilableTrait::setClientProfiler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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