| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ApiCollection extends ArrayCollection |
||
| 11 | { |
||
| 12 | private int $page; |
||
| 13 | private int $totalPages; |
||
| 14 | private UriInterface $uri; |
||
| 15 | |||
| 16 | public function __construct(array $elements = [], UriInterface $uri, int $page, int $totalPages) |
||
| 17 | { |
||
| 18 | parent::__construct($elements); |
||
| 19 | $this->page = $page; |
||
| 20 | $this->totalPages = $totalPages; |
||
| 21 | $this->uri = $uri; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getTotalPages(): int |
||
| 25 | { |
||
| 26 | return $this->totalPages; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getUri(): UriInterface |
||
| 30 | { |
||
| 31 | return $this->uri; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getPage(): int |
||
| 37 | } |
||
| 38 | } |
||
| 39 |