1 | <?php |
||
2 | |||
3 | namespace Godbout\Alfred\Time\Services; |
||
4 | |||
5 | abstract class TimerService |
||
6 | { |
||
7 | public $allowsEmptyProject = true; |
||
8 | |||
9 | public $allowsEmptyTag = true; |
||
10 | |||
11 | abstract public function startTimer(); |
||
12 | |||
13 | abstract public function runningTimer(); |
||
14 | |||
15 | abstract public function stopCurrentTimer(); |
||
16 | |||
17 | abstract public function continueTimer($timerId); |
||
18 | |||
19 | 8 | public function deleteTimer($timerId) |
|
0 ignored issues
–
show
|
|||
20 | { |
||
21 | 8 | return false; |
|
22 | } |
||
23 | |||
24 | abstract public function projects(); |
||
25 | |||
26 | abstract public function tags(); |
||
27 | |||
28 | abstract public function pastTimers(); |
||
29 | |||
30 | 42 | public function __toString() |
|
31 | { |
||
32 | 42 | return strtolower((new \ReflectionClass(static::class))->getShortName()); |
|
33 | } |
||
34 | } |
||
35 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.