| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 20 | public function __construct( |
|
| 20 | int $itemsPerPage, |
||
| 21 | int $startPage, |
||
| 22 | int $totalItems, |
||
| 23 | array $items, |
||
| 24 | ?string $nextLink = null, |
||
| 25 | ?string $previousLink = null |
||
| 26 | ) { |
||
| 27 | 20 | $this->itemsPerPage = $itemsPerPage; |
|
| 28 | 20 | $this->startPage = $startPage; |
|
| 29 | 20 | $this->totalItems = $totalItems; |
|
| 30 | 20 | $this->items = $items; |
|
| 31 | 20 | $this->nextUrl = $nextLink; |
|
| 32 | 20 | $this->previousUrl = $previousLink; |
|
| 33 | 20 | } |
|
| 34 | |||
| 77 |