Total Complexity | 7 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class ArchiveResult implements ResultInterface |
||
10 | { |
||
11 | /** @var string response status */ |
||
12 | private $status; |
||
13 | |||
14 | /** @var array file contents and information */ |
||
15 | private $file; |
||
16 | |||
17 | /** @var array signature information structure */ |
||
18 | private $structure; |
||
19 | |||
20 | /** |
||
21 | * Fields expected in response |
||
22 | */ |
||
23 | public function getFields(): array |
||
24 | { |
||
25 | return [ |
||
26 | 'status', |
||
27 | 'file', |
||
28 | 'structure', |
||
29 | ]; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Get the value of status |
||
34 | */ |
||
35 | public function getStatus(): string |
||
36 | { |
||
37 | return $this->status; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Set the value of status |
||
42 | */ |
||
43 | public function setStatus(string $status): void |
||
44 | { |
||
45 | $this->status = $status; |
||
46 | } |
||
47 | |||
48 | |||
49 | /** |
||
50 | * Get the value of file |
||
51 | */ |
||
52 | public function getFile(): array |
||
53 | { |
||
54 | return $this->file; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Set the value of file |
||
59 | */ |
||
60 | public function setFile(array $file): void |
||
61 | { |
||
62 | $this->file = $file; |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * Get the value of structure |
||
67 | */ |
||
68 | public function getStructure(): ?array |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * Set the value of structure |
||
75 | */ |
||
76 | public function setStructure(array $structure): void |
||
79 | } |
||
80 | } |
||
81 |