Passed
Pull Request — master (#14)
by Rimas
02:08
created

ArchiveResult::setStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
namespace Dokobit\Gateway\Result\File;
3
4
use Dokobit\Gateway\Result\ResultInterface;
5
6
/**
7
 * Result object for archive response.
8
 */
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
69
    {
70
        return $this->structure;
71
    }
72
73
    /**
74
     * Set the value of structure
75
     */
76
    public function setStructure(array $structure): void
77
    {
78
        $this->structure = $structure;
79
    }
80
}
81