InputPager::__construct()   A
last analyzed

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 0
Metric Value
eloc 3
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace kalanis\kw_pager;
4
5
6
class InputPager extends BasicPager
7
{
8 1
    public function __construct(Interfaces\ISettings $setting, Interfaces\IActualInput $page)
9
    {
10 1
        $this->setMaxResults($setting->getMaxResults());
11 1
        $this->setActualPage($page->getActualPage());
12 1
        $this->setLimit($setting->getLimit());
13 1
    }
14
}
15