AbstractPaginatedModel::setPage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Model;
4
5
use JMS\Serializer\Annotation\ExclusionPolicy;
6
use JMS\Serializer\Annotation\Expose;
7
use JMS\Serializer\Annotation\Type;
8
9
/**
10
 * Class AbstractPaginatedModel
11
 * @ExclusionPolicy("all")
12
 */
13
abstract class AbstractPaginatedModel
14
{
15
    /**
16
     * @var string
17
     * @Type("App\Model\PaginationLinks")
18
     * @Expose
19
     */
20
    protected $_links;
21
22
    /**
23
     * @var integer
24
     * @Type("integer")
25
     */
26
    protected $pageCount;
27
28
    /**
29
     * @var int
30
     *
31
     * @Type("integer")
32
     * @Expose
33
     */
34
    protected $page;
35
36
    /**
37
     * @var int
38
     *
39
     * @Type("integer")
40
     * @Expose
41
     */
42
    protected $totalCount;
43
44
    /**
45
     * @return mixed
46
     */
47 8
    public function getPageCount()
48
    {
49 8
        return $this->pageCount;
50
    }
51
52
    /**
53
     * @param mixed $pageCount
54
     */
55 8
    public function setPageCount($pageCount)
56
    {
57 8
        $this->pageCount = $pageCount;
58 8
    }
59
60
    /**
61
     * @return mixed
62
     */
63
    public function getPage()
64
    {
65
        return $this->page;
66
    }
67
68
    /**
69
     * @param mixed $page
70
     */
71 8
    public function setPage($page)
72
    {
73 8
        $this->page = $page;
74 8
    }
75
76
    /**
77
     * @return int
78
     */
79 8
    public function getTotalCount()
80
    {
81 8
        return $this->totalCount;
82
    }
83
84
    /**
85
     * @param $totalCount
86
     */
87 8
    public function setTotalCount($totalCount)
88
    {
89 8
        $this->totalCount = $totalCount;
90 8
    }
91
92
    /**
93
     * @return mixed
94
     */
95
    public function getLinks()
96
    {
97
        return $this->_links;
98
    }
99
100
    /**
101
     * @param  mixed $_links
102
     * @return $this
103
     */
104 8
    public function setLinks($_links)
105
    {
106 8
        $this->_links = $_links;
107
108 8
        return $this;
109
    }
110
}
111