| 1 | <?php |
||
| 10 | final class RemoveProductFromCart |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $cartId; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $productCode; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $cartId |
||
| 24 | * @param string $productCode |
||
| 25 | */ |
||
| 26 | private function __construct(string $cartId, string $productCode) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $cartId |
||
| 34 | * @param string $productCode |
||
| 35 | * |
||
| 36 | * @return self |
||
| 37 | */ |
||
| 38 | public static function create(string $cartId, string $productCode): self |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getCartId(): string |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getProductCode(): string |
||
| 58 | } |
||
| 59 |