| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ApiCollection extends ArrayCollection implements ApiCollectionInterface |
||
| 12 | { |
||
| 13 | private int $page; |
||
| 14 | private int $totalPages; |
||
| 15 | private UriInterface $uri; |
||
| 16 | |||
| 17 | public function __construct(array $elements, UriInterface $uri, int $page, int $totalPages, int $totalRecords) |
||
|
|
|||
| 18 | { |
||
| 19 | parent::__construct($elements); |
||
| 20 | $this->page = $page; |
||
| 21 | $this->totalPages = $totalPages; |
||
| 22 | $this->uri = $uri; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getTotalPages(): int |
||
| 26 | { |
||
| 27 | return $this->totalPages; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getUri(): UriInterface |
||
| 31 | { |
||
| 32 | return $this->uri; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getPage(): int |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.