Response   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 32
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A data() 0 3 1
A json_handle() 0 5 1
1
<?php
2
3
namespace UAPAY\Orders\Cancel;
4
5
use UAPAY\Log as Log;
6
use UAPAY\Exception;
7
8
class Response extends \UAPAY\Response
9
{
10
    /**
11
     *      @var string
12
     */
13
    protected $id;
14
15
    /**
16
     *      @var array
17
     */
18
    protected $data;
19
20
    /**
21
     *      Handle decoded JSON
22
     *
23
     *      @throws Exception\JSON
24
     */
25
    protected function json_handle()
26
    {
27
        parent::json_handle();
28
29
        $this->data = $this->json['data'];
30
    }
31
32
    /**
33
     *      Get info about order
34
     *
35
     *      @return array data
36
     */
37
    public function data()
38
    {
39
        return $this->data;
40
    }
41
}
42