| Total Complexity | 5 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class OffsetPaginatedResponse extends AbstractPaginatedResponse implements PaginatedResponseInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var int |
||
| 9 | */ |
||
| 10 | protected $offset; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param $data |
||
| 14 | * @param $offset |
||
| 15 | * @param $limit |
||
| 16 | * @param null $total |
||
|
|
|||
| 17 | */ |
||
| 18 | 5 | public function __construct($data, $offset, $limit, $total = null) |
|
| 19 | { |
||
| 20 | 5 | parent::__construct($data, $limit, $total); |
|
| 21 | 5 | $this->offset = $offset; |
|
| 22 | 5 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return int |
||
| 26 | */ |
||
| 27 | 4 | public function getOffset() |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param int $offset |
||
| 34 | */ |
||
| 35 | 1 | public function setOffset($offset) |
|
| 38 | 1 | } |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | 2 | public function toArray() |
|
| 56 |