* @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\Query; use PrestaShop\PrestaShop\Core\Domain\Customer\ValueObject\CustomerId; /** * Query for retrieving last empty cart for customer */ class GetLastEmptyCustomerCart { /** * @var CustomerId */ private $customerId; /** * @param int $customerId */ public function __construct(int $customerId) { $this->customerId = new CustomerId($customerId); } /** * @return CustomerId */ public function getCustomerId(): CustomerId { return $this->customerId; } }