Collection::getLimit()   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 0
1
<?php
2
/*
3
 * This file is part of the Adlogix package.
4
 *
5
 * (c) Allan Segebarth <[email protected]>
6
 * (c) Jean-Jacques Courtens <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Adlogix\ConfluenceClient\Entity\Collection;
13
14
15
16
/**
17
 * Class Collection
18
 * @package Adlogix\ConfluenceClient\Entity\Collection
19
 * @author  Cedric Michaux <[email protected]>
20
 */
21
class Collection implements CollectionInterface
22
{
23
24
    /**
25
     * @var int
26
     */
27
    private $start;
28
29
    /**
30
     * @var int
31
     */
32
    private $limit;
33
34
    /**
35
     * @var int
36
     */
37
    private $size;
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function getStart()
43
    {
44
        return $this->start;
45
    }
46
47
    /**
48
     * @param int $start
49
     *
50
     * @return Collection
51
     */
52
    public function setStart($start)
53
    {
54
        $this->start = $start;
55
        return $this;
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function getLimit()
62
    {
63
        return $this->limit;
64
    }
65
66
    /**
67
     * @param int $limit
68
     *
69
     * @return Collection
70
     */
71
    public function setLimit($limit)
72
    {
73
        $this->limit = $limit;
74
        return $this;
75
    }
76
77
    /**
78
     * {@inheritdoc}
79
     */
80
    public function getSize()
81
    {
82
        return $this->size;
83
    }
84
85
    /*
86
     * @param int $size
87
     *
88
     * @return Collection
89
     */
90
    public function setSize($size)
91
    {
92
        $this->size = $size;
93
        return $this;
94
    }
95
96
}
97