AbstractResponse

Implements \Dumkaaa\Boxberry\Api\Common\Message\ResponseInterface

Абстрактный класс ответа

package

Dumkaaa\Boxberry\Api\Common\Message\Response

Methods

AbstractResponse constructor.

__construct(\Dumkaaa\Boxberry\Api\Common\Message\RequestInterface $request, mixed $data) 

Возвращает данные, преобразуя их в коллекцию объектов

getCollection(string $collectionClass = \Dumkaaa\Boxberry\Api\Common\Model\CreateFromAttributesInterface::class) : array<mixed,\Dumkaaa\Boxberry\Api\Common\Model\AbstractModel>|array<mixed,object>
inheritdoc

Arguments

$collectionClass

string

класс для наполнения им коллекции

Response

array<mixed,\Dumkaaa\Boxberry\Api\Common\Model\AbstractModel>|array<mixed,object>

Возвращает ответ (данные)

getData() : mixed

Response

mixed

Возвращает ошибки

getError() : null|string

Response

null|string

Возвращает объект запроса

getRequest() : \Dumkaaa\Boxberry\Api\Common\Message\RequestInterface

Возвращает статус

getStatus() : null|string

Response

null|string

Запрос успешен?

isSuccessful() : boolean

Response

boolean

Properties

Объект запроса

request : \Dumkaaa\Boxberry\Api\Common\Message\RequestInterface
var

Объект запроса

Type(s)

\Dumkaaa\Boxberry\Api\Common\Message\RequestInterface

Ответ (данные)

data : mixed
var

Ответ (данные)

Type(s)

mixed