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.
Completed
Push — master ( 48ef9d...490df9 )
by Christian
01:26
created

CitySearchBuilder::getQuery()   A

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
3
/*
4
 * (c) Christian Gripp <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Core23\SetlistFm\Builder;
11
12
final class CitySearchBuilder
13
{
14
    /**
15
     * @var array
16
     */
17
    private $query;
18
19
    private function __construct()
20
    {
21
        $this->query = [];
22
23
        $this->page(1);
24
    }
25
26
    /**
27
     * @param int $page
28
     *
29
     * @return CitySearchBuilder
30
     */
31
    public function page(int $page): self
32
    {
33
        $this->query['p'] = $page;
34
35
        return $this;
36
    }
37
38
    /**
39
     * @param string $name
40
     *
41
     * @return CitySearchBuilder
42
     */
43
    public function withName(string $name): self
44
    {
45
        $this->query['name'] = $name;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @param string $country
52
     *
53
     * @return CitySearchBuilder
54
     */
55
    public function withCountry(string $country): self
56
    {
57
        $this->query['country'] = $country;
58
59
        return $this;
60
    }
61
62
    /**
63
     * @param string $name
64
     *
65
     * @return CitySearchBuilder
66
     */
67
    public function withState(string $name): self
68
    {
69
        $this->query['state'] = $name;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @param string $code
76
     *
77
     * @return CitySearchBuilder
78
     */
79
    public function withStateCode(string $code): self
80
    {
81
        $this->query['stateCode'] = $code;
82
83
        return $this;
84
    }
85
86
    /**
87
     * @return array
88
     */
89
    public function getQuery(): array
90
    {
91
        return $this->query;
92
    }
93
}
94