Passed
Branch develop (84afed)
by Paulius
02:35
created

AddSignerResult   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
dl 0
loc 50
c 0
b 0
f 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatus() 0 3 1
A setSigners() 0 3 1
A setStatus() 0 3 1
A getFields() 0 5 1
A getSigners() 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/{token}/addsigner response.
8
 */
9
class AddSignerResult implements ResultInterface
10
{
11
    /** @var string response status */
12
    private $status;
13
14
    /** @var array document signers */
15
    private $signers;
16
17
    /**
18
     * Fields expected in response
19
     * @return array
20
     */
21
    public function getFields()
22
    {
23
        return [
24
            'status',
25
            'signers',
26
        ];
27
    }
28
29
    /**
30
     * Set status
31
     */
32
    public function setStatus(string $status): void
33
    {
34
        $this->status = $status;
35
    }
36
37
    /**
38
     * Get status
39
     */
40
    public function getStatus(): string
41
    {
42
        return $this->status;
43
    }
44
45
    /**
46
     * Set signers
47
     */
48
    public function setSigners(?array $signers): void
49
    {
50
        $this->signers = $signers;
51
    }
52
53
    /**
54
     * Get signers
55
     */
56
    public function getSigners(): ?array
57
    {
58
        return $this->signers;
59
    }
60
}
61