Request::info()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace StarCraftApiClient\Requests;
2
3
/**
4
 * @author neun
5
 * @since  2015-10-25
6
 */
7
abstract class Request
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $url;
13
14
    /**
15
     * @var array
16
     */
17
    protected $info;
18
19
    /**
20
     * @var string (JSON)
21
     */
22
    protected $response;
23
24
    /**
25
     * @return string $url
26
     */
27
    public function url()
28
    {
29
        return $this->url;
30
    }
31
32
    /**
33
     * @return array $info
34
     */
35
    public function info()
36
    {
37
        return $this->info;
38
    }
39
40
    /**
41
     * @param array $info
42
     * @return Request
43
     */
44
    public function setInfo($info)
45
    {
46
        $this->info = $info;
47
        return $this;
48
    }
49
50
    /**
51
     * @return string (JSON) $response
52
     */
53
    public function response()
54
    {
55
        return $this->response;
56
    }
57
58
    /**
59
     * @param string (JSON) $response
60
     * @return Request
61
     */
62
    public function setResponse($response)
63
    {
64
        $this->response = $response;
65
        return $this;
66
    }
67
}
68