Passed
Push — master ( 443842...86f0b2 )
by Joshua
05:55 queued 01:59
created

CollectionMeta   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 33
ccs 0
cts 11
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getLimit() 0 3 1
A getOffset() 0 3 1
A getTotal() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace SeamsCMS\Delivery\Model;
5
6
class CollectionMeta
7
{
8
    use HydratorTrait;
9
10
    /** @var int */
11
    private $limit;
12
    /** @var int */
13
    private $offset;
14
    /** @var int */
15
    private $total;
16
17
    /**
18
     * @return int
19
     */
20
    public function getLimit(): int
21
    {
22
        return $this->limit;
23
    }
24
25
    /**
26
     * @return int
27
     */
28
    public function getOffset(): int
29
    {
30
        return $this->offset;
31
    }
32
33
    /**
34
     * @return int
35
     */
36
    public function getTotal(): int
37
    {
38
        return $this->total;
39
    }
40
}
41