CheckResult::getStatus()   A
last analyzed

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 0
1
<?php
2
namespace Dokobit\Gateway\Result\File;
3
4
use Dokobit\Gateway\Result\ResultInterface;
5
6
/**
7
 * Result object for file/check response.
8
 */
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
48
    {
49
        return $this->structure;
50
    }
51
52
    /**
53
     * Set the value of structure
54
     */
55
    public function setStructure(array $structure): void
56
    {
57
        $this->structure = $structure;
58
    }
59
}
60