Passed
Push — master ( c10be1...cb219e )
by Joshua
03:34 queued 11s
created

CollectionMeta   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Test Coverage

Coverage 25%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLimit() 0 3 1
A getOffset() 0 3 1
A getTotal() 0 3 1
A __construct() 0 2 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;
26
    /** @var int */
27
    private $offset;
28
    /** @var int */
29
    private $total;
30
31
32
    /**
33
     * CollectionMeta constructor.
34
     *
35
     */
36 3
    protected function __construct()
37
    {
38 3
    }
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