Passed
Push — master ( c1f9a4...4b0053 )
by Rimas
02:42 queued 32s
created

CreateResult   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 7
eloc 14
dl 0
loc 70
c 0
b 0
f 0
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setStatus() 0 3 1
A setToken() 0 3 1
A setSigners() 0 3 1
A getSigners() 0 3 1
A getFields() 0 6 1
A getStatus() 0 3 1
A getToken() 0 3 1
1
<?php
2
namespace Dokobit\Gateway\Result\Signing;
3
4
use Dokobit\Gateway\Result\ResultInterface;
5
6
/**
7
 * Result object for signing/create response.
8
 */
9
class CreateResult implements ResultInterface
10
{
11
    /** @var string response status */
12
    private $status;
13
14
    /** @var string token for mobile status query */
15
    private $token;
16
17
    /** @var array document signers */
18
    private $signers;
19
20
    /**
21
     * Fields expected in response
22
     * @return array
23
     */
24
    public function getFields()
25
    {
26
        return [
27
            'status',
28
            'token',
29
            'signers',
30
        ];
31
    }
32
33
    /**
34
     * Set status
35
     */
36
    public function setStatus(string $status): void
37
    {
38
        $this->status = $status;
39
    }
40
41
    /**
42
     * Get status
43
     */
44
    public function getStatus(): string
45
    {
46
        return $this->status;
47
    }
48
49
    /**
50
     * Set token
51
     */
52
    public function setToken(string $token): void
53
    {
54
        $this->token = $token;
55
    }
56
57
    /**
58
     * Get token
59
     */
60
    public function getToken(): string
61
    {
62
        return $this->token;
63
    }
64
65
    /**
66
     * Set signers
67
     */
68
    public function setSigners(?array $signers): void
69
    {
70
        $this->signers = $signers;
71
    }
72
73
    /**
74
     * Get signers
75
     */
76
    public function getSigners(): ?array
77
    {
78
        return $this->signers;
79
    }
80
}
81