Total Complexity | 6 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 86.67% |
Changes | 0 |
1 | <?php |
||
7 | class JobTimingManager |
||
8 | { |
||
9 | /** @var string */ |
||
10 | protected $jobTimingClass; |
||
11 | |||
12 | /** @var bool */ |
||
13 | protected $recordTimings; |
||
14 | |||
15 | 38 | public function __construct($jobTimingClass, $recordTimings) |
|
19 | 38 | } |
|
20 | |||
21 | /** |
||
22 | * @throws UnsupportedException |
||
23 | * |
||
24 | * @return int Number of archived runs pruned |
||
25 | */ |
||
26 | 1 | public function pruneJobTimings(\DateTime $olderThan) |
|
|
|||
27 | { |
||
28 | 1 | throw new UnsupportedException('not supported'); |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Subclasses should overrride this function instead of recordTiming. |
||
33 | * |
||
34 | * @param $status |
||
35 | */ |
||
36 | protected function performRecording($status, \DateTime $dateTime = null) |
||
37 | { |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param $status |
||
42 | */ |
||
43 | 97 | public function recordTiming($status, \DateTime $dateTime = null) |
|
49 | 44 | } |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 1 | public function getJobTimingClass() |
|
57 | } |
||
58 | } |
||
59 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.