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   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 30%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 68
ccs 3
cts 10
cp 0.3
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLimit() 0 4 1
A setLimit() 0 6 1
A getOffset() 0 4 1
A setOffset() 0 6 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