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.

RoutingResult::isMethodNotAllowed()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace KM\Saffron;
3
4
class RoutingResult
5
{
6
    protected $successful = false;
7
    protected $methodNotAllowed = false;
8
    protected $resourceNotFound = false;
9
    protected $allowedMethods = [];
10
    protected $target = [];
11
    protected $parameters = [];
12
13
    public function __construct($successful, $methodNotAllowed, $resourceNotFound, array $allowedMethods, array $target, array $parameters)
14
    {
15
        $this->successful = $successful;
16
        $this->methodNotAllowed = $methodNotAllowed;
17
        $this->resourceNotFound = $resourceNotFound;
18
        $this->allowedMethods = $allowedMethods;
19
        $this->target = $target;
20
        $this->parameters = $parameters;
21
    }
22
23
    /**
24
     * @return bool
25
     */
26
    public function isSuccessful()
27
    {
28
        return $this->successful;
29
    }
30
31
    /**
32
     * @return bool
33
     */
34
    public function isMethodNotAllowed()
35
    {
36
        return $this->methodNotAllowed;
37
    }
38
39
    /**
40
     * @return bool
41
     */
42
    public function isResourceNotFound()
43
    {
44
        return $this->resourceNotFound;
45
    }
46
47
    /**
48
     * @return array
49
     */
50
    public function getAllowedMethods()
51
    {
52
        return $this->allowedMethods;
53
    }
54
55
    /**
56
     * @return array
57
     */
58
    public function getTarget()
59
    {
60
        return $this->target;
61
    }
62
63
    /**
64
     * @return array
65
     */
66
    public function getParameters()
67
    {
68
        return $this->parameters;
69
    }
70
}
71