GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (b10c57)
by milkmeowo
02:58
created

BaseRequest   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 68
rs 10
c 0
b 0
f 0
wmc 12
1
<?php
2
namespace AliyunMNS\Requests;
3
4
abstract class BaseRequest
5
{
6
    protected $headers;
7
    protected $resourcePath;
8
    protected $method;
9
10
    protected $body;
11
    protected $queryString;
12
13
    public function __construct($method, $resourcePath) {
14
        $this->method = $method;
15
        $this->resourcePath = $resourcePath;
16
    }
17
18
    abstract public function generateBody();
19
    abstract public function generateQueryString();
20
21
    public function setBody($body)
22
    {
23
        $this->body = $body;
24
    }
25
26
    public function getBody()
27
    {
28
        return $this->body;
29
    }
30
31
    public function setQueryString($queryString)
32
    {
33
        $this->queryString = $queryString;
34
    }
35
36
    public function getQueryString()
37
    {
38
        return $this->queryString;
39
    }
40
41
    public function isHeaderSet($header)
42
    {
43
        return isset($this->headers[$header]);
44
    }
45
46
    public function getHeaders()
47
    {
48
        return $this->headers;
49
    }
50
51
    public function removeHeader($header)
52
    {
53
        if (isset($this->headers[$header]))
54
        {
55
            unset($this->headers[$header]);
56
        }
57
    }
58
59
    public function setHeader($header, $value)
60
    {
61
        $this->headers[$header] = $value;
62
    }
63
64
    public function getResourcePath()
65
    {
66
        return $this->resourcePath;
67
    }
68
69
    public function getMethod()
70
    {
71
        return $this->method;
72
    }
73
}
74
75
?>
76