items = array(); foreach ($options['items'] as $item) { $this->items[] = new RefundResponse($item); } if (!empty($options['next_cursor'])) { $this->nextCursor = $options['next_cursor']; } } /** * Возвращает список возвратов * @return RefundInterface[] Список возвратов */ public function getItems() { return $this->items; } /** * Возвращает токен следующей страницы, если он задан, или null * @return string|null Токен следующей страницы */ public function getNextCursor() { return $this->nextCursor; } /** * Проверяет имееотся ли в ответе токен следующей страницы * @return bool True если токен следующей страницы есть, false если нет */ public function hasNextCursor() { return $this->nextCursor !== null; } }