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

MobileStatusResult   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 81
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 73.68%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 7
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 81
ccs 14
cts 19
cp 0.7368
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getFields() 0 8 1
A setStatus() 0 4 1
A getStatus() 0 4 1
A getFile() 0 4 1
A setFile() 0 4 1
A getSignatureId() 0 4 1
A setSignatureId() 0 4 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