Completed
Push — develop ( 3c9b6d...449012 )
by Žilvinas
04:38
created

MobileStatusResult::setStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace Isign\Sign;
3
4
use Isign\ResultInterface;
5
6
/**
7
 * Result object for mobile ID login status response.
8
 */
9
class MobileStatusResult implements ResultInterface
10
{
11
    /** @var string response status */
12
    private $status;
13
14
    /** @var string signature id */
15
    private $signatureId;
16
17
    /** @var array signed document file */
18
    private $file = array();
19
20
    /**
21
     * Fields expected in response
22
     * @return array
23
     */
24 2
    public function getFields()
25
    {
26
        return [
27 2
            'status',
28 2
            'signature_id',
29
            'file'
30 2
        ];
31
    }
32
33
    /**
34
     * Set status
35
     * @param string $status
36
     * @return void
37
     */
38 1
    public function setStatus($status)
39
    {
40 1
        $this->status = $status;
41 1
    }
42
43
    /**
44
     * Get status
45
     * @return string
46
     */
47 1
    public function getStatus()
48
    {
49 1
        return $this->status;
50
    }
51
52
    /**
53
     * Gets the value of file.
54
     * @return array
55
     */
56 1
    public function getFile()
57
    {
58 1
        return $this->file;
59
    }
60
61
    /**
62
     * Sets the value of file.
63
     * @param array $file the file
64
     * @return void
65
     */
66 1
    public function setFile($file)
67
    {
68 1
        $this->file = $file;
69 1
    }
70
 
71
    /**
72
     * Gets the value of signatureId.
73
     * @return mixed
74
     */
75
    public function getSignatureId()
76
    {
77
        return $this->signatureId;
78
    }
79
 
80
    /**
81
     * Sets the value of signatureId.
82
     * @param mixed $signatureId the signature id
83
     * @return void
84
     */
85
    public function setSignatureId($signatureId)
86
    {
87
        $this->signatureId = $signatureId;
88
    }
89
}
90