Completed
Push — master ( ca808c...de2f5d )
by Frederik
02:56
created

Pagination::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
class Pagination
6
{
7
    /**
8
     * @var string
9
     */
10
    private $pageNumber;
11
12
    /**
13
     * @var bool
14
     */
15
    private $lastPage;
16
17 12
    public function __construct($pageNumber, $lastPage)
18
    {
19 12
        $this->pageNumber = $pageNumber;
20 12
        $this->lastPage   = $lastPage;
21 12
    }
22
23
    /**
24
     * @return string
25
     */
26 3
    public function getPageNumber()
27
    {
28 3
        return $this->pageNumber;
29
    }
30
31
    /**
32
     * @return bool
33
     */
34 3
    public function isLastPage()
35
    {
36 3
        return $this->lastPage;
37
    }
38
}
39