Completed
Push — master ( 494025...63e9a9 )
by Joshua
14s queued 11s
created

CollectionMeta   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 42
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A getLimit() 0 3 1
A getOffset() 0 3 1
A getTotal() 0 3 1
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 = 0;
26
    /** @var int */
27
    private $offset = 0;
28
    /** @var int */
29
    private $total = 0;
30
31
32
    /**
33
     * CollectionMeta constructor.
34
     *
35
     */
36 11
    protected function __construct()
37
    {
38 11
    }
39
40
    /**
41
     * @return int
42
     */
43 2
    public function getLimit(): int
44
    {
45 2
        return $this->limit;
46
    }
47
48
    /**
49
     * @return int
50
     */
51 2
    public function getOffset(): int
52
    {
53 2
        return $this->offset;
54
    }
55
56
    /**
57
     * @return int
58
     */
59 2
    public function getTotal(): int
60
    {
61 2
        return $this->total;
62
    }
63
}
64