AbstractList::setCollectionURI()   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\Entity;
4
5
/**
6
 * Class AbstractList
7
 * @package ikoene\Marvel\DataContainer
8
 */
9
abstract class AbstractList
10
{
11
    /**
12
     * The number of total available items in this list.
13
     * Will always be greater than or equal to the "returned" value.
14
     *
15
     * @var integer
16
     */
17
    private $available;
18
19
    /**
20
     * The number of items returned in this list (up to 20).
21
     *
22
     * @var integer
23
     */
24
    private $returned;
25
26
    /**
27
     * The path to the full list.
28
     *
29
     * @var string
30
     */
31
    private $collectionURI;
32
33
    /**
34
     * @return int
35
     */
36
    public function getAvailable()
37
    {
38
        return $this->available;
39
    }
40
41
    /**
42
     * @param int $available
43
     */
44
    public function setAvailable(int $available)
45
    {
46
        $this->available = $available;
47
    }
48
49
    /**
50
     * @return int
51
     */
52
    public function getReturned()
53
    {
54
        return $this->returned;
55
    }
56
57
    /**
58
     * @param int $returned
59
     */
60
    public function setReturned(int $returned)
61
    {
62
        $this->returned = $returned;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getCollectionURI()
69
    {
70
        return $this->collectionURI;
71
    }
72
73
    /**
74
     * @param string $collectionURI
75
     */
76
    public function setCollectionURI(string $collectionURI)
77
    {
78
        $this->collectionURI = $collectionURI;
79
    }
80
}
81