BasketItemResource

Namespace

IO\Api\Resources

Extends
Properties
Type Name Description

BasketService

$basketService

Methods
public __construct($request, $response, $basketService)

BasketItemResource constructor.

Parameters

Type

Name

Description

Request

$request

ApiResponse

$response

BasketService

$basketService

public index(): Response

List basket items

public store(): Response

Add an item to the basket

public show($selector): Response

Get a basket item

Parameters

Type

Name

Description

string

$selector

public update($selector): Response

Update the basket item

Parameters

Type

Name

Description

string

$selector

public destroy($selector): Response

Delete an item from the basket

Parameters

Type

Name

Description

string

$selector