* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Cart\Command; use PrestaShop\PrestaShop\Core\Domain\Customer\ValueObject\CustomerId; /** * Creates empty cart for given customer. */ class CreateEmptyCustomerCartCommand { /** * @var CustomerId */ private $customerId; /** * @param int $customerId Customer for which cart is being created */ public function __construct($customerId) { $this->customerId = new CustomerId($customerId); } /** * @return CustomerId */ public function getCustomerId() { return $this->customerId; } }