NullDebugger::timer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Webino™ (http://webino.sk)
4
 *
5
 * @link        https://github.com/webino for the canonical source repository
6
 * @copyright   Copyright (c) 2015-2017 Webino, s.r.o. (http://webino.sk)
7
 * @author      Peter Bačinský <[email protected]>
8
 * @license     BSD-3-Clause
9
 */
10
11
namespace WebinoAppLib\Service;
12
13
use Tracy\IBarPanel;
14
15
/**
16
 * Class NullDebugger
17
 */
18
class NullDebugger implements DebuggerInterface
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getBarPanel($id)
24
    {
25
        return null;
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function setBarPanel(IBarPanel $panel, $id = null)
32
    {
33
        return $this;
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function setBarInfo($info, $value = null)
40
    {
41
        return $this;
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function dump($subject, $return = false)
48
    {
49
        return;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function barDump($subject, $title = null, array $options = null)
56
    {
57
        return;
58
    }
59
60
    /**
61
     * {@inheritdoc}
62
     */
63
    public function timer($name = null)
64
    {
65
        return 0;
66
    }
67
}
68