Copied!

ReorderService

ReorderService.php : 15

Methods

publicaddToCartFromOrder()

ReorderService.php : 17
public addToCartFromOrder(OrderInterface $order, CartInterface $reorderCart) : CartInterface

Parameters

Name Type Default value Description
$order OrderInterface - -
$reorderCart CartInterface - -

Return values

CartInterface

publiccanBeReordered()

ReorderService.php : 26
public canBeReordered(OrderInterface $order) : bool

Parameters

Name Type Default value Description
$order OrderInterface - -

Return values

bool

publiccopyContext()

ReorderService.php : 22
public copyContext(OrderInterface $sourceOrder, CheckoutInterface $targetCheckout) : void

Parameters

Name Type Default value Description
$sourceOrder OrderInterface - -
$targetCheckout CheckoutInterface - -

publiccreateReorderCart()

ReorderService.php : 24
public createReorderCart(OrderInterface $order[, string|null $newCartName = null ]) : CartInterface

Parameters

Name Type Default value Description
$order OrderInterface - -
$newCartName string|null null -

Return values

CartInterface