NullClientProfiler::startProfiling()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
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
use Symfony\Component\Stopwatch\StopwatchEvent;
13
14
/**
15
 * NullClientProfiler.
16
 *
17
 * @package MobileNotifBundle
18
 * @author Oliver Thebault <[email protected]>
19
 */
20
class NullClientProfiler implements ClientProfilerInterface
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function startProfiling($message)
26
    {
27
        return new StopwatchEvent(microtime());
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function stopProfiling(StopwatchEvent $event, $result)
34
    {
35
        $event->stop();
36
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function getCalls()
42
    {
43
        return array();
44
    }
45
}
46