type = $response['type']; } $this->items = array(); foreach ($response['items'] as $item) { $this->items[] = new Webhook($item); } } /** * Возвращает тип ответа. Доступен только `list` * @return string */ public function getType() { return $this->type; } /** * Возвращает список установленных webhook для переданного OAuth-токена * @return Webhook[] Список установленных webhook */ public function getItems() { return $this->items; } }