| 1 | <?php |
||
| 15 | final class CartItemRemoved implements SerializableInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var UuidInterface |
||
| 19 | */ |
||
| 20 | private $cartId; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ProductCode |
||
| 24 | */ |
||
| 25 | private $productCode; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param UuidInterface $cartId |
||
| 29 | * @param ProductCode $productCode |
||
| 30 | */ |
||
| 31 | private function __construct(UuidInterface $cartId, ProductCode $productCode) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param UuidInterface $cartId |
||
| 39 | * @param ProductCode $productCode |
||
| 40 | * |
||
| 41 | * @return self |
||
| 42 | */ |
||
| 43 | public static function occur(UuidInterface $cartId, ProductCode $productCode): self |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return UuidInterface |
||
| 50 | */ |
||
| 51 | public function getCartId(): UuidInterface |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return ProductCode |
||
| 58 | */ |
||
| 59 | public function getProductCode(): ProductCode |
||
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | public static function deserialize(array $data): self |
||
| 74 | |||
| 75 | /** |
||
| 76 | * {@inheritdoc} |
||
| 77 | */ |
||
| 78 | public function serialize(): array |
||
| 85 | } |
||
| 86 |