class Delivery

Properties

protected Collection $items The items that should delivered.

Methods

__construct(Collection $items)

Create a new delivery instance.

Collection
days($until)

Get the delivery days.

bool
hasMinimumOrderValue()

Check if minimum order value has been reached.

Supplier
supplier()

Get the supplier.

Collection
items()

Get the producers.

minimumOrderValue()

No description

int
subtotal()

Get the subtotal.

int
shipping()

Get the shiiping fee.

bool
isFreeShipping()

Check if shipping is free.

Collection
vat()

Get the vat.

Details

at line 22
__construct(Collection $items)

Create a new delivery instance.

Parameters

Collection $items

at line 32
Collection days($until)

Get the delivery days.

Parameters

$until

Return Value

Collection

at line 49
bool hasMinimumOrderValue()

Check if minimum order value has been reached.

Return Value

bool

at line 59
Supplier supplier()

Get the supplier.

Return Value

Supplier

at line 69
Collection items()

Get the producers.

Return Value

Collection

at line 74
minimumOrderValue()

at line 84
int subtotal()

Get the subtotal.

Return Value

int

at line 94
int shipping()

Get the shiiping fee.

Return Value

int

at line 108
bool isFreeShipping()

Check if shipping is free.

Return Value

bool

at line 118
Collection vat()

Get the vat.

Return Value

Collection