Completed
Push — master ( a98974...082d32 )
by Iakov
03:17
created

Pageable::getPageRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Kami\ApiCoreBundle\Model;
4
5
6
class Pageable
7
{
8
    private $content;
9
    private $total;
10
    private $pageRequest;
11
12
    /**
13
     * Pageable constructor.
14
     * @param $content
15
     * @param $total int
16
     * @param $pageRequest PageRequest
17
     */
18
    public function __construct($content, $total, $pageRequest)
19
    {
20
        $this->content = $content;
21
        $this->total = $total;
22
        $this->pageRequest = $pageRequest;
23
    }
24
25
    /**
26
     * @return iterable
27
     */
28
    public function getContent()
29
    {
30
        return $this->content;
31
    }
32
33
    /**
34
     * @param iterable $content
35
     */
36
    public function setContent(\iterable $content)
37
    {
38
        $this->content = $content;
39
    }
40
41
    /**
42
     * @return int
43
     */
44
    public function getTotal()
45
    {
46
        return $this->total;
47
    }
48
49
    /**
50
     * @param int $total
51
     */
52
    public function setTotal($total)
53
    {
54
        $this->total = $total;
55
    }
56
57
    /**
58
     * @return PageRequest
59
     */
60
    public function getPageRequest()
61
    {
62
        return $this->pageRequest;
63
    }
64
65
    /**
66
     * @param PageRequest $pageRequest
67
     */
68
    public function setPageRequest($pageRequest)
69
    {
70
        $this->pageRequest = $pageRequest;
71
    }
72
73
74
}