| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | class Pagination extends VuetifyElement |
||
| 11 | { |
||
| 12 | public function render(array $parameters, HTMLNode $previous): HTMLNode |
||
| 13 | { |
||
| 14 | $this->color($parameters, $previous); |
||
| 15 | |||
| 16 | $name = $parameters[self::NAME] ?? 'paginator'; |
||
| 17 | $p = HTMLNode::factory( |
||
| 18 | 'v-pagination', |
||
| 19 | [ |
||
| 20 | 'v-model' => $name . "." . HTMLPagination::CURRENT_PAGE, |
||
| 21 | ':length' => $name . "." . HTMLPagination::TOTAL_ITEMS, |
||
| 22 | ] |
||
| 23 | ); |
||
| 24 | |||
| 25 | return $p; |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function getMetadata(): Metadata |
||
| 32 | } |
||
| 33 | } |
||
| 34 |