Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
12 | public function render(array $parameters, HTMLNode $previous): HTMLNode |
||
13 | { |
||
14 | $name = $parameters[self::NAME] ?? 'paginator'; |
||
15 | $p = HTMLNode::factory( |
||
16 | 'b-pagination', |
||
17 | [ |
||
18 | ':total' => $name . "." . HTMLPagination::TOTAL_ITEMS, |
||
19 | ':current.sync' => $name . "." . HTMLPagination::CURRENT_PAGE, |
||
20 | ':per-page' => $name . "." . HTMLPagination::PER_PAGE |
||
21 | ] |
||
22 | ); |
||
23 | |||
24 | return $p; |
||
25 | } |
||
27 |