Request::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace UAPAY\Orders\Show;
4
5
use UAPAY\Log as Log;
6
7
class Request extends \UAPAY\Request
8
{
9
    /**
10
     *      @var String
11
     */
12
    protected $id;
13
14
    /**
15
     *      @var String
16
     */
17
    protected $api_path = '/api/orders/show';
18
19
    /**
20
     *      @var String
21
     */
22
    protected $response_class = '\UAPAY\Orders\Show\Response';
23
24
    /**
25
     *      Constructor
26
     *
27
     *      @param array $options array of options
28
     */
29
    public function __construct(Array $options)
30
    {
31
        parent::__construct($options);
32
    }
33
34
    /**
35
     *      get/set id
36
     *
37
     *      @param string $value
38
     *      @return string
39
     */
40
    public function id($value=null)
41
    {
42
        if ($value !== null)
43
        {
44
            $this->id = $this->as_string($value);
45
        }
46
47
        return $this->id;
48
    }
49
50
    /**
51
     *      Returns params set
52
     *
53
     *      @return array
54
     */
55
    public function get_params()
56
    {
57
        return array(
58
            'id' => $this->id(),
59
        );
60
    }
61
}
62