Pagination   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
dl 0
loc 22
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 3 1
A paginator() 0 3 1
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