Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class TocItem |
||
9 | { |
||
10 | /** |
||
11 | * @var IdentifierInterface |
||
12 | */ |
||
13 | private $identifier; |
||
14 | |||
15 | /** |
||
16 | * @var ByteBuffer|null |
||
17 | */ |
||
18 | private $hash; |
||
19 | |||
20 | /** |
||
21 | * @var string|null |
||
22 | */ |
||
23 | private $url; |
||
24 | |||
25 | /** |
||
26 | * @var StatusReport[] |
||
27 | */ |
||
28 | private $statusReports; |
||
29 | |||
30 | /** |
||
31 | * @param StatusReport[] $statusReports |
||
32 | */ |
||
33 | public function __construct(IdentifierInterface $identifier, ?ByteBuffer $hash, ?string $url, array $statusReports) |
||
34 | { |
||
35 | $this->identifier = $identifier; |
||
36 | $this->hash = $hash; |
||
37 | $this->url = $url; |
||
38 | $this->statusReports = $statusReports; |
||
39 | } |
||
40 | |||
41 | public function getIdentifier(): IdentifierInterface |
||
42 | { |
||
43 | return $this->identifier; |
||
44 | } |
||
45 | |||
46 | public function getHash(): ?ByteBuffer |
||
47 | { |
||
48 | return $this->hash; |
||
49 | } |
||
50 | |||
51 | public function getUrl(): ?string |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @return StatusReport[] |
||
58 | */ |
||
59 | public function getStatusReports(): array |
||
62 | } |
||
63 | } |
||
64 |