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.

GetRequestTrait::setLimit()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Speicher210\Monsum\Api;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Trait for "Get" requests.
9
 */
10
trait GetRequestTrait
11
{
12
    /**
13
     * The limit on the number of elements in the query of a list.
14
     *
15
     * @var integer
16
     *
17
     * @JMS\Type("integer")
18
     * @JMS\SerializedName("LIMIT")
19
     */
20
    protected $limit = 100;
21
22
    /**
23
     * The offset for the request.
24
     *
25
     * @var integer
26
     *
27
     * @JMS\Type("integer")
28
     * @JMS\SerializedName("OFFSET")
29
     */
30
    protected $offset;
31
32
    /**
33
     * Get the limit on the number of elements in the query of a list.
34
     *
35
     * @return integer
36
     */
37
    public function getLimit()
38
    {
39
        return $this->limit;
40
    }
41
42
    /**
43
     * Set the limit for the request.
44
     *
45
     * @param integer $limit The limit.
46
     * @return $this
47
     */
48 12
    public function setLimit($limit)
49
    {
50 12
        $this->limit = $limit;
51
52 12
        return $this;
53
    }
54
55
    /**
56
     * Get the offset.
57
     *
58
     * @return integer
59
     */
60
    public function getOffset()
61
    {
62
        return $this->offset;
63
    }
64
65
    /**
66
     * Set the offset of the request.
67
     *
68
     * @param integer $offset The offset.
69
     * @return $this
70
     */
71
    public function setOffset($offset)
72
    {
73
        $this->offset = $offset;
74
75
        return $this;
76
    }
77
}
78