21 lines
544 B
PHP
21 lines
544 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace Modules\Core\Cart\Events;
|
||
|
|
|
||
|
|
use Lunar\Models\Cart;
|
||
|
|
use Lunar\Models\CartLine;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* A line was moved OUT of the purchasable cart and into "saved for later" —
|
||
|
|
* not a removal (the row still exists), but distinct from CartLineUpdated
|
||
|
|
* since it's a state transition worth its own hook (e.g. abandoned-cart
|
||
|
|
* recovery treating a saved line very differently from a deleted one).
|
||
|
|
*/
|
||
|
|
class CartLineSaved
|
||
|
|
{
|
||
|
|
public function __construct(
|
||
|
|
public readonly Cart $cart,
|
||
|
|
public readonly CartLine $line,
|
||
|
|
) {}
|
||
|
|
}
|