Pager::getPagerParameter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * File: Pager.php
4
 *
5
 * @author      Maciej Sławik <[email protected]>
6
 * Github:      https://github.com/maciejslawik
7
 */
8
9
namespace MSlwk\Otomoto\App\Stats\Pager;
10
11
/**
12
 * Class Pager
13
 * @package MSlwk\Otomoto\App\Stats\Pager
14
 */
15
class Pager implements PagerInterface
16
{
17
    /**
18
     * @param int $page
19
     * @return string
20
     */
21 1
    public function getPagerParameter(int $page): string
22
    {
23 1
        return "page={$page}";
24
    }
25
}
26