Completed
Pull Request — master (#2230)
by
unknown
02:56
created

PagePagination::getPage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the FOSRestBundle package.
7
 *
8
 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace FOS\RestBundle\Pagination;
15
16
/**
17
 * @author Bartek Chmura <[email protected]>
18
 */
19
final class PagePagination implements PaginationInterface
20
{
21
    const DEFAULT_PAGE = "1";
22
23
    /**
24
     * @var string
25
     */
26
    private $page = self::DEFAULT_PAGE;
27
28
    public function getPage(): string
29
    {
30
        return $this->page;
31
    }
32
33
    public function setPage(string $page): self
34
    {
35
        $this->page = $page;
36
37
        return $this;
38
    }
39
}
40