Passed
Branch master (51117f)
by Guillaume
02:50
created

Timer   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 20
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A running() 0 3 1
A continue() 0 3 1
A stop() 0 3 1
A start() 0 3 1
1
<?php
2
3
namespace Godbout\Alfred\Time;
4
5
class Timer
6
{
7 4
    public static function start()
8
    {
9 4
        return Workflow::serviceEnabled()->startTimer();
10
    }
11
12 5
    public static function running()
13
    {
14 5
        return Workflow::serviceEnabled()->runningTimer();
15
    }
16
17 4
    public static function stop()
18
    {
19 4
        return Workflow::serviceEnabled()->stopCurrentTimer();
20
    }
21
22 1
    public static function continue($timerId)
23
    {
24 1
        return Workflow::serviceEnabled()->continueTimer($timerId);
25
    }
26
}
27