Passed
Push — master ( 69013a...5649e5 )
by Joshua
11:51 queued 09:34
created

Filter::getLimit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the SeamsCMSDeliverySdk package.
7
 *
8
 * (c) Seams-CMS.com
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace SeamsCMS\Delivery;
15
16
/**
17
 * Class Filter
18
 * @package SeamsCMS\Delivery
19
 */
20
class Filter
21
{
22
    /** @var int */
23
    protected $offset = 0;
24
25
    /** @var int */
26
    protected $limit = 100;
27
28
    /** @var string */
29
    protected $sort = "";
30
31
    /**
32
     * @return int
33
     */
34
    public function getOffset(): int
35
    {
36
        return $this->offset;
37
    }
38
39
    /**
40
     * @param int $offset
41
     */
42
    public function setOffset(int $offset): void
43
    {
44
        $this->offset = $offset;
45
    }
46
47
    /**
48
     * @return int
49
     */
50
    public function getLimit(): int
51
    {
52
        return $this->limit;
53
    }
54
55
    /**
56
     * @param int $limit
57
     */
58
    public function setLimit(int $limit): void
59
    {
60
        $this->limit = $limit;
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function getSort(): string
67
    {
68
        return $this->sort;
69
    }
70
71
    /**
72
     * @param string $sort
73
     */
74
    public function setSort(string $sort): void
75
    {
76
        $this->sort = $sort;
77
    }
78
}
79