| Total Complexity | 7 |
| Total Lines | 73 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class CursorPaginatedResponse extends AbstractPaginatedResponse implements PaginatedResponseInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var mixed |
||
| 9 | */ |
||
| 10 | protected $before; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var mixed |
||
| 14 | */ |
||
| 15 | protected $after; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param $data |
||
| 19 | * @param $before |
||
| 20 | * @param $after |
||
| 21 | * @param $limit |
||
| 22 | * @param null $total |
||
|
|
|||
| 23 | */ |
||
| 24 | 5 | public function __construct($data, $before, $after, $limit, $total = null) |
|
| 29 | 5 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | 5 | public function getBefore() |
|
| 35 | { |
||
| 36 | 5 | return $this->before; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param mixed $before |
||
| 41 | */ |
||
| 42 | 1 | public function setBefore($before) |
|
| 43 | { |
||
| 44 | 1 | $this->before = $before; |
|
| 45 | 1 | } |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | 5 | public function getAfter() |
|
| 51 | { |
||
| 52 | 5 | return $this->after; |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param mixed $after |
||
| 57 | */ |
||
| 58 | 1 | public function setAfter($after) |
|
| 61 | 1 | } |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return array |
||
| 65 | */ |
||
| 66 | 3 | public function toArray() |
|
| 78 | } |
||
| 79 | } |
||
| 80 |