| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class PagerTag |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param int|null $index Current page index |
||
| 11 | * @param int|null $pageCount Total number of pages |
||
| 12 | * @param bool|null $allowForward Whether forward navigation is allowed |
||
| 13 | * @param bool|null $allowBackwards Whether backward navigation is allowed |
||
| 14 | */ |
||
| 15 | 3 | public function __construct( |
|
| 16 | public ?int $index = null, |
||
| 17 | public ?int $pageCount = null, |
||
| 18 | public ?bool $allowForward = null, |
||
| 19 | public ?bool $allowBackwards = null, |
||
| 20 | ) { |
||
| 21 | 3 | } |
|
| 22 | |||
| 23 | 3 | public static function fromAmazonRequest(array $amazonRequest): self |
|
| 30 | 3 | ); |
|
| 31 | } |
||
| 33 |