class SearchResponse extends BaseResponse

Class SearchResponse

Methods

__construct()

Construct an instance of a BaseResponse.

null|ResponseInterface
getInnerResponse()

No description

setInnerResponse(ResponseInterface $innerResponse)

No description

getSearchProducts()

Get the search products from a NodeMws response.

setSearchProducts(SearchProduct[] $searchProducts)

No description

bool
isEmpty()

Check if a SearchResponse gives back no products.

first()

Return the first product returned from a search query.

Details

in BaseResponse at line line 25
__construct()

Construct an instance of a BaseResponse.

in BaseResponse at line line 35
null|ResponseInterface getInnerResponse()

Return Value

null|ResponseInterface

in BaseResponse at line line 43
setInnerResponse(ResponseInterface $innerResponse)

Parameters

ResponseInterface $innerResponse

at line line 28
SearchProduct[] getSearchProducts()

Get the search products from a NodeMws response.

Return Value

SearchProduct[]

at line line 36
setSearchProducts(SearchProduct[] $searchProducts)

Parameters

SearchProduct[] $searchProducts

at line line 46
bool isEmpty()

Check if a SearchResponse gives back no products.

Return Value

bool

at line line 56
SearchProduct first()

Return the first product returned from a search query.

Return Value

SearchProduct