Passed
Push — master ( 2844e2...c932ad )
by John
03:09
created

Response   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
dl 0
loc 37
rs 10
c 1
b 0
f 0

7 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 getOperationStatus() 0 3 1
A getOperationNumber() 0 3 1
A getOperationDateTime() 0 3 1
1
<?php
2
3
namespace Evilnet\Dotpay\DotpayApi;
4
5
class Response
6
{
7
    private $data;
8
9
    public function __construct($data)
10
    {
11
        $this->data = $data;
12
    }
13
14
    public function getControl()
15
    {
16
        return $this->data['control'];
17
    }
18
19
    public function getOperationNumber()
20
    {
21
        return $this->data['operation_number'];
22
    }
23
24
    public function getEmail()
25
    {
26
        return $this->data['email'];
27
    }
28
29
    public function getOperationAmount()
30
    {
31
        return $this->data['operation_amount'];
32
    }
33
34
    public function getOperationDateTime()
35
    {
36
        return $this->data['operation_datetime'];
37
    }
38
39
    public function getOperationStatus()
40
    {
41
        return $this->data['operation_status'];
42
    }
43
44
}