Response::json_handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
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