* @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\Customer\Command; use PrestaShop\PrestaShop\Core\Domain\Customer\ValueObject\CustomerDeleteMethod; use PrestaShop\PrestaShop\Core\Domain\Customer\ValueObject\CustomerId; /** * Deletes given customer. */ class DeleteCustomerCommand { /** * @var CustomerId */ private $customerId; /** * @var CustomerDeleteMethod */ private $deleteMethod; /** * @param int $customerId * @param string $deleteMethod */ public function __construct($customerId, $deleteMethod) { $this->customerId = new CustomerId($customerId); $this->deleteMethod = new CustomerDeleteMethod($deleteMethod); } /** * @return CustomerId */ public function getCustomerId() { return $this->customerId; } /** * @return CustomerDeleteMethod */ public function getDeleteMethod() { return $this->deleteMethod; } }