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.

AbstractSearchPayload::getPage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Slack API library.
5
 *
6
 * (c) Cas Leentfaar <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CL\Slack\Payload;
13
14
/**
15
 * @author Cas Leentfaar <[email protected]>
16
 */
17
abstract class AbstractSearchPayload extends AbstractPayload
18
{
19
    /**
20
     * @var string
21
     */
22
    private $query;
23
24
    /**
25
     * @var string
26
     */
27
    private $sort;
28
29
    /**
30
     * @var string
31
     */
32
    private $sortDir;
33
34
    /**
35
     * @var bool
36
     */
37
    private $highlight;
38
39
    /**
40
     * @var int
41
     */
42
    private $count;
43
44
    /**
45
     * @var int
46
     */
47
    private $page;
48
49
    /**
50
     * @param string $query
51
     */
52 3
    public function setQuery($query)
53
    {
54 3
        $this->query = $query;
55 3
    }
56
57
    /**
58
     * @return string
59
     */
60 3
    public function getQuery()
61
    {
62 3
        return $this->query;
63
    }
64
65
    /**
66
     * @param int $count
67
     */
68 3
    public function setCount($count)
69
    {
70 3
        $this->count = $count;
71 3
    }
72
73
    /**
74
     * @return int
75
     */
76 3
    public function getCount()
77
    {
78 3
        return $this->count;
79
    }
80
81
    /**
82
     * @param bool $highlight
83
     */
84 3
    public function setHighlight($highlight)
85
    {
86 3
        $this->highlight = $highlight;
87 3
    }
88
89
    /**
90
     * @return bool
91
     */
92 3
    public function getHighlight()
93
    {
94 3
        return $this->highlight;
95
    }
96
97
    /**
98
     * @param int $page
99
     */
100 3
    public function setPage($page)
101
    {
102 3
        $this->page = $page;
103 3
    }
104
105
    /**
106
     * @return int
107
     */
108 3
    public function getPage()
109
    {
110 3
        return $this->page;
111
    }
112
113
    /**
114
     * @param string $sort
115
     */
116 3
    public function setSort($sort)
117
    {
118 3
        $this->sort = $sort;
119 3
    }
120
121
    /**
122
     * @return string
123
     */
124 3
    public function getSort()
125
    {
126 3
        return $this->sort;
127
    }
128
129
    /**
130
     * @param string $sortDir
131
     */
132 3
    public function setSortDir($sortDir)
133
    {
134 3
        $this->sortDir = $sortDir;
135 3
    }
136
137
    /**
138
     * @return string
139
     */
140 3
    public function getSortDir()
141
    {
142 3
        return $this->sortDir;
143
    }
144
}
145