Test Failed
Pull Request — develop (#12)
by
unknown
02:48
created

MobileHashStatusResult::setSignatureValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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 MobileHashStatusResult implements ResultInterface
10
{
11
    /** @var string response status */
12
    private $status;
13
14
    /** @var string signature value */
15
    private $signatureValue = null;
16
17
    /**
18
     * Fields expected in response
19
     * @return array
20
     */
21
    public function getFields()
22
    {
23
        return [
24
            'status',
25
            'signature_value',
26
        ];
27
    }
28
29
    /**
30
     * Set status
31
     * @param string $status
32
     * @return void
33
     */
34
    public function setStatus($status)
35
    {
36
        $this->status = $status;
37
    }
38
39
    /**
40
     * Get status
41
     * @return string
42
     */
43
    public function getStatus()
44
    {
45
        return $this->status;
46
    }
47
 
48
    /**
49
     * Gets the value of signatureValue.
50
     * @return string|null
51
     */
52
    public function getSignatureValue()
53
    {
54
        return $this->signatureValue;
55
    }
56
 
57
    /**
58
     * Sets the value of signatureValue.
59
     * @param string|null $signatureValue the signature value
60
     */
61
    public function setSignatureValue($signatureValue)
62
    {
63
        $this->signatureValue = $signatureValue;
64
    }
65
}
66