Passed
Branch develop (d358ff)
by Žilvinas
07:00
created

MobileStatusResult::setSignatureId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 4
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
namespace Isign\Sign;
3
4
use Isign\ResultInterface;
5
6
/**
7
 * Result object for mobile ID login status response.
8
 */
9 View Code Duplication
class MobileStatusResult implements ResultInterface
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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
            'signature_id',
29
            'file'
30
        ];
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