Passed
Pull Request — master (#33)
by
unknown
06:20
created

NullStopwatch   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A start() 0 3 1
A stop() 0 3 1
1
<?php
2
3
namespace MovingImage\Client\VMPro\Stopwatch;
4
5
use MovingImage\Client\VMPro\Interfaces\StopwatchInterface;
6
7
/**
8
 * A no-op implementation of the StopwatchInterface.
9
 */
10
class NullStopwatch implements StopwatchInterface
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function start($name, $category = null)
16
    {
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function stop($name)
23
    {
24
    }
25
}
26