Completed
Push — master ( 8d4298...1c42b2 )
by Oliver
7s
created

NullClientProfiler::startProfiling()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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
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