* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\Domain\Security\Command; use PrestaShop\PrestaShop\Core\Domain\Security\ValueObject\CustomerSessionId; /** * Deletes customer sessions in bulk action */ class BulkDeleteCustomerSessionsCommand { /** * @var array */ private $sessionIds; /** * @param array $sessionIds */ public function __construct(array $sessionIds) { $this->setCustomerSessionIds($sessionIds); } /** * @return array */ public function getCustomerSessionIds(): array { return $this->sessionIds; } /** * @param array $sessionIds */ private function setCustomerSessionIds(array $sessionIds): void { foreach ($sessionIds as $sessionId) { $this->sessionIds[] = new CustomerSessionId((int) $sessionId); } } }