Response   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 8
eloc 10
c 3
b 0
f 0
dl 0
loc 70
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getControl() 0 3 1
A getOperationAmount() 0 3 1
A getEmail() 0 3 1
A getOperationCurrency() 0 3 1
A getOperationStatus() 0 3 1
A getOperationNumber() 0 3 1
A getOperationDateTime() 0 3 1
1
<?php
2
3
namespace Evilnet\Dotpay\DotpayApi;
4
5
/**
6
 * Class Response
7
 * @package Evilnet\Dotpay\DotpayApi
8
 */
9
class Response
10
{
11
    /**
12
     * @var
13
     */
14
    private $data;
15
16
    /**
17
     * Response constructor.
18
     * @param $data
19
     */
20
    public function __construct($data)
21
    {
22
        $this->data = $data;
23
    }
24
25
    /**
26
     * @return mixed
27
     */
28
    public function getControl()
29
    {
30
        return $this->data['control'];
31
    }
32
33
    /**
34
     * @return mixed
35
     */
36
    public function getOperationNumber()
37
    {
38
        return $this->data['operation_number'];
39
    }
40
41
    /**
42
     * @return mixed
43
     */
44
    public function getEmail()
45
    {
46
        return $this->data['email'];
47
    }
48
49
    /**
50
     * @return mixed
51
     */
52
    public function getOperationAmount()
53
    {
54
        return $this->data['operation_amount'];
55
    }
56
57
    /**
58
     * @return mixed
59
     */
60
    public function getOperationCurrency()
61
    {
62
        return $this->data['operation_currency'];
63
    }
64
65
    /**
66
     * @return mixed
67
     */
68
    public function getOperationDateTime()
69
    {
70
        return $this->data['operation_datetime'];
71
    }
72
73
    /**
74
     * @return mixed
75
     */
76
    public function getOperationStatus()
77
    {
78
        return $this->data['operation_status'];
79
    }
80
}
81