Total Complexity | 6 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class CodeCoverageReports |
||
18 | { |
||
19 | /** |
||
20 | * @var array<string, object> |
||
21 | */ |
||
22 | private $reports; |
||
23 | |||
24 | /** |
||
25 | * @param array<string, object> $reports |
||
26 | */ |
||
27 | public function __construct(array $reports) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return array<string, object> |
||
34 | */ |
||
35 | public function getReports(): array |
||
36 | { |
||
37 | return $this->reports; |
||
38 | } |
||
39 | |||
40 | public function getReport(string $format): ?object |
||
41 | { |
||
42 | return $this->reports[$format] ?? null; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return array<string> |
||
47 | */ |
||
48 | public function getAvailableFormats(): array |
||
51 | } |
||
52 | |||
53 | public function hasReport(string $format): bool |
||
54 | { |
||
55 | return isset($this->reports[$format]); |
||
56 | } |
||
57 | |||
58 | public function count(): int |
||
61 | } |
||
62 | } |
||
63 |