Completed
Pull Request — master (#20)
by Kevin
02:45
created

ClientProfilableTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setClientProfiler() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the JarvisBundle 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\JarvisBundle\Profiler;
11
12
/**
13
 * Trait which provides tools to profile a client implementation.
14
 *
15
 * @package JarvisBundle
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