for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace SyliusCart\Domain\Command;
/**
* @author Arkadiusz Krakowiak <[email protected]>
*/
final class RemoveProductFromCart
{
* @var string
private $cartId;
private $productCode;
* @param string $cartId
* @param string $productCode
private function __construct(string $cartId, string $productCode)
$this->cartId = $cartId;
$this->productCode = $productCode;
}
*
* @return self
public static function create(string $cartId, string $productCode): self
return new self($cartId, $productCode);
* @return string
public function getCartId(): string
return $this->cartId;
public function getProductCode(): string
return $this->productCode;