Completed
Push — master ( cd00c2...c10be1 )
by Joshua
13s queued 11s
created

CollectionMeta::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 2
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\Model;
15
16
/**
17
 * Class CollectionMeta
18
 * @package SeamsCMS\Delivery\Model
19
 */
20
class CollectionMeta
21
{
22
    use HydratorTrait;
23
24
    /** @var int */
25
    private $limit;
26
    /** @var int */
27
    private $offset;
28
    /** @var int */
29
    private $total;
30
31
32
    /**
33
     * CollectionMeta constructor.
34
     *
35
     */
36
    protected function __construct()
37
    {
38
    }
39
40
    /**
41
     * @return int
42
     */
43
    public function getLimit(): int
44
    {
45
        return $this->limit;
46
    }
47
48
    /**
49
     * @return int
50
     */
51
    public function getOffset(): int
52
    {
53
        return $this->offset;
54
    }
55
56
    /**
57
     * @return int
58
     */
59
    public function getTotal(): int
60
    {
61
        return $this->total;
62
    }
63
}
64