Total Complexity | 8 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class Result |
||
6 | { |
||
7 | private int $size; |
||
8 | private int $duration; |
||
9 | private bool $hasSolution; |
||
10 | |||
11 | 9 | public function __construct(int $size, int $duration, bool $hasSolution) |
|
16 | 6 | } |
|
17 | |||
18 | 4 | public function getSize(): int |
|
19 | { |
||
20 | 4 | return $this->size; |
|
21 | } |
||
22 | |||
23 | 4 | public function getDuration(): int |
|
24 | { |
||
25 | 4 | return $this->duration; |
|
26 | } |
||
27 | |||
28 | 5 | public function hasSolution(): bool |
|
31 | } |
||
32 | |||
33 | 9 | private function filterSize(int $size): int |
|
40 | } |
||
41 | |||
42 | 7 | private function filterDuration(int $duration): int |
|
49 | } |
||
50 | } |
||
51 |