| 1 | <?php |
||
| 14 | final class CartCleared implements SerializableInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var UuidInterface |
||
| 18 | */ |
||
| 19 | private $cartId; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param UuidInterface $cartId |
||
| 23 | */ |
||
| 24 | private function __construct(UuidInterface $cartId) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param UuidInterface $cartId |
||
| 31 | * |
||
| 32 | * @return CartCleared |
||
| 33 | */ |
||
| 34 | public static function occur(UuidInterface $cartId): self |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public static function deserialize(array $data) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function serialize() |
||
| 58 | } |
||
| 59 |