SearchResponse
class SearchResponse extends BaseResponse
Class SearchResponse
Methods
getSearchProducts()
Get the search products from a NodeMws response.
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()
in BaseResponse at line line 43
setInnerResponse(ResponseInterface $innerResponse)
at line line 28
SearchProduct[]
getSearchProducts()
Get the search products from a NodeMws response.
at line line 36
setSearchProducts(SearchProduct[] $searchProducts)
at line line 46
bool
isEmpty()
Check if a SearchResponse gives back no products.
at line line 56
SearchProduct
first()
Return the first product returned from a search query.