Completed
Push — master ( 4c48e6...2c6b77 )
by Gianluca
01:26
created

CardVerificationResponse::getAuthorizationCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Getnet\API;
4
5
/**
6
 * Class CardVerificationResponse
7
 * @package Getnet\API
8
 */
9
class CardVerificationResponse
10
{
11
    /** @var */
12
    private $status;
13
14
    /** @var */
15
    private $verification_id;
16
17
    /** @var */
18
    private $authorization_code;
19
20
    /** @var */
21
    private $status_code;
22
23
    /** @var */
24
    private $responseJSON;
25
26
    /**
27
     * @return mixed
28
     */
29
    public function getStatus()
30
    {
31
        return $this->status;
32
    }
33
34
    /**
35
     * @param mixed $status
36
     * @return CardVerificationResponse
37
     */
38
    public function setStatus($status)
39
    {
40
        $this->status = $status;
41
42
        return $this;
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getVerificationId()
49
    {
50
        return $this->verification_id;
51
    }
52
53
    /**
54
     * @param mixed $verification_id
55
     * @return CardVerificationResponse
56
     */
57
    public function setVerificationId($verification_id)
58
    {
59
        $this->verification_id = $verification_id;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return mixed
66
     */
67
    public function getAuthorizationCode()
68
    {
69
        return $this->authorization_code;
70
    }
71
72
    /**
73
     * @param mixed $authorization_code
74
     * @return CardVerificationResponse
75
     */
76
    public function setAuthorizationCode($authorization_code)
77
    {
78
        $this->authorization_code = $authorization_code;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @return mixed
85
     */
86
    public function getStatusCode()
87
    {
88
        return $this->status_code;
89
    }
90
91
    /**
92
     * @param mixed $status_code
93
     * @return CardVerificationResponse
94
     */
95
    public function setStatusCode($status_code)
96
    {
97
        $this->status_code = $status_code;
98
99
        return $this;
100
    }
101
102
    /**
103
     * @return mixed
104
     */
105
    public function getResponseJSON()
106
    {
107
        return $this->responseJSON;
108
    }
109
110
    /**
111
     * @param mixed $responseJSON
112
     * @return CardVerificationResponse
113
     */
114
    public function setResponseJSON($responseJSON)
115
    {
116
        $this->responseJSON = $responseJSON;
117
118
        return $this;
119
    }
120
121
    /**
122
     * @param $json
123
     * @return $this
124
     */
125
    public function mapperJson($json)
126
    {
127
        array_walk_recursive($json, function ($value, $key) {
128
            if (property_exists($this, $key)) {
129
                $this->$key = $value;
130
            }
131
        });
132
133
        $this->responseJSON = $json;
134
135
        return $this;
136
    }
137
}
138