AbstractDataContainer::setCount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php declare(strict_types = 1);
2
3
namespace ikoene\Marvel\DataContainer;
4
5
/**
6
 * Class AbstractDataContainer
7
 * @package ikoene\Marvel\DataContainer
8
 */
9
abstract class AbstractDataContainer
10
{
11
    /**
12
     * The requested offset (number of skipped results) of the call.
13
     *
14
     * @var int
15
     */
16
    private $offset;
17
18
    /**
19
     * The requested result limit.
20
     *
21
     * @var int
22
     */
23
    private $limit;
24
25
    /**
26
     * The total number of resources available given the current filter set.
27
     *
28
     * @var int
29
     */
30
    private $total;
31
32
    /**
33
     * The total number of results returned by this call.
34
     *
35
     * @var int
36
     */
37
    private $count;
38
39
    /**
40
     * @return int
41
     */
42
    public function getOffset()
43
    {
44
        return $this->offset;
45
    }
46
47
    /**
48
     * @param int $offset
49
     */
50
    public function setOffset(int $offset)
51
    {
52
        $this->offset = $offset;
53
    }
54
55
    /**
56
     * @return int
57
     */
58
    public function getLimit()
59
    {
60
        return $this->limit;
61
    }
62
63
    /**
64
     * @param int $limit
65
     */
66
    public function setLimit(int $limit)
67
    {
68
        $this->limit = $limit;
69
    }
70
71
    /**
72
     * @return int
73
     */
74
    public function getTotal()
75
    {
76
        return $this->total;
77
    }
78
79
    /**
80
     * @param int $total
81
     */
82
    public function setTotal(int $total)
83
    {
84
        $this->total = $total;
85
    }
86
87
    /**
88
     * @return int
89
     */
90
    public function getCount()
91
    {
92
        return $this->count;
93
    }
94
95
    /**
96
     * @param int $count
97
     */
98
    public function setCount(int $count)
99
    {
100
        $this->count = $count;
101
    }
102
}
103