* @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\CustomerId; /** * Disables customers in bulk action. */ class BulkDisableCustomerCommand { /** * @var CustomerId[] */ private $customerIds = []; /** * @param int[] $customerIds */ public function __construct(array $customerIds) { $this->setCustomerIds($customerIds); } /** * @return CustomerId[] */ public function getCustomerIds() { return $this->customerIds; } /** * @param int[] $customerIds */ private function setCustomerIds(array $customerIds) { foreach ($customerIds as $customerId) { $this->customerIds[] = new CustomerId($customerId); } } }