Pagination::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Jaxon\App;
4
5
use Jaxon\Plugin\Response\Pagination\Paginator;
6
use Jaxon\Response\AjaxResponse;
7
8
class Pagination extends AbstractComponent
9
{
10
    /**
11
     * Create a paginator.
12
     *
13
     * @param int $nPageNumber     The current page number
14
     * @param int $nItemsPerPage    The number of items per page
15
     * @param int $nTotalItems      The total number of items
16
     *
17
     * @return Paginator
18
     */
19
    final public function paginator(int $nPageNumber, int $nItemsPerPage, int $nTotalItems): Paginator
20
    {
21
        return $this->_response()->paginator($nPageNumber, $nItemsPerPage, $nTotalItems);
22
    }
23
24
    /**
25
     * @inheritDoc
26
     */
27
    final public function render(): AjaxResponse
28
    {
29
        return $this->_response();
30
    }
31
}
32