Pager::getFrom()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class Pager extends Model
8
{
9
10
    protected $total = null;
11
12
    protected $from = null;
13
14
    protected $to = null;
15
16
    protected $pageSize = null;
17
18
    protected $pagesCount = null;
19
20
    protected $currentPage = null;
21
22
    protected $mappingClasses = [];
23
24
    protected $propNameMap = [];
25
26
    /**
27
     * Retrieve the total property
28
     *
29
     * @return int|null
30
     */
31
    public function getTotal()
32
    {
33
        return $this->total;
34
    }
35
36
    /**
37
     * Retrieve the from property
38
     *
39
     * @return int|null
40
     */
41 1
    public function getFrom()
42
    {
43 1
        return $this->from;
44
    }
45
46
    /**
47
     * Retrieve the to property
48
     *
49
     * @return int|null
50
     */
51 1
    public function getTo()
52
    {
53 1
        return $this->to;
54
    }
55
56
    /**
57
     * Retrieve the pageSize property
58
     *
59
     * @return int|null
60
     */
61 1
    public function getPageSize()
62
    {
63 1
        return $this->pageSize;
64
    }
65
66
    /**
67
     * Retrieve the pagesCount property
68
     *
69
     * @return int|null
70
     */
71
    public function getPagesCount()
72
    {
73
        return $this->pagesCount;
74
    }
75
76
    /**
77
     * Retrieve the currentPage property
78
     *
79
     * @return int|null
80
     */
81 1
    public function getCurrentPage()
82
    {
83 1
        return $this->currentPage;
84
    }
85
}
86