Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class CheckResult implements ResultInterface |
||
10 | { |
||
11 | /** @var string response status */ |
||
12 | private $status; |
||
13 | |||
14 | /** @var array signature information structure */ |
||
15 | private $structure; |
||
16 | |||
17 | /** |
||
18 | * Fields expected in response |
||
19 | */ |
||
20 | public function getFields(): array |
||
21 | { |
||
22 | return [ |
||
23 | 'status', |
||
24 | 'structure', |
||
25 | ]; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Get the value of status |
||
30 | */ |
||
31 | public function getStatus(): string |
||
32 | { |
||
33 | return $this->status; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Set the value of status |
||
38 | */ |
||
39 | public function setStatus(string $status): void |
||
40 | { |
||
41 | $this->status = $status; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Get the value of structure |
||
46 | */ |
||
47 | public function getStructure(): ?array |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Set the value of structure |
||
54 | */ |
||
55 | public function setStructure(array $structure): void |
||
58 | } |
||
59 | } |
||
60 |