Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class TimeInfo |
||
8 | { |
||
9 | private $time; |
||
10 | private $uptime; |
||
11 | private $downtime; |
||
12 | |||
13 | /** |
||
14 | * @param \DateTimeInterface $time |
||
15 | * @param int $uptime |
||
16 | * @param int $downtime |
||
17 | */ |
||
18 | 8 | public function __construct(\DateTimeInterface $time, int $uptime, int $downtime) |
|
23 | } |
||
24 | |||
25 | 3 | public function getTime(): \DateTimeImmutable |
|
26 | { |
||
27 | 3 | return $this->time; |
|
28 | } |
||
29 | |||
30 | 3 | public function getUptime(): int |
|
31 | { |
||
32 | 3 | return $this->uptime; |
|
33 | } |
||
34 | |||
35 | 3 | public function getDowntime(): int |
|
38 | } |
||
39 | } |
||
40 |