| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 2 | public function setData(ILink $link, IPositions $positions): self |
|
| 28 | { |
||
| 29 | 2 | $link->setPageNumber($positions->getNextPage()); |
|
| 30 | 2 | $this->updateItem('{NEXT_PAGE_URL}', $link->getPageLink()); |
|
| 31 | 2 | $link->setPageNumber($positions->getLastPage()); |
|
| 32 | 2 | $this->updateItem('{LAST_PAGE_URL}', $link->getPageLink()); |
|
| 33 | 2 | return $this; |
|
| 34 | } |
||
| 36 |