| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class HydraPaginatedCollection extends Collection |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Returns first page URI. |
||
| 16 | */ |
||
| 17 | public function getFirstPage(): ?string |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Returns last page URI. |
||
| 24 | */ |
||
| 25 | public function getLastPage(): ?string |
||
| 26 | { |
||
| 27 | 1 | return $this->getExtraProperty('hydra:lastPage'); |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Returns next page URI. |
||
| 32 | */ |
||
| 33 | public function getNextPage(): ?string |
||
| 34 | { |
||
| 35 | 1 | return $this->getExtraProperty('hydra:nextPage'); |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Returns total item count. |
||
| 40 | */ |
||
| 41 | public function getTotalItems(): int |
||
| 44 | } |
||
| 45 | } |
||
| 46 |