Passed
Push — master ( 853bda...782fe1 )
by Guillaume
06:08
created

Timer   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 25%

Importance

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

4 Methods

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