* @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\Supplier\Command; /** * Class AbstractBulkSupplierCommand is responsible for providing shared logic between all bulk actions * in brands and suppliers listing. */ abstract class AbstractBulkSupplierCommand { /** * @param array $ids * * @return bool */ protected function assertIsEmptyOrContainsNonIntegerValues(array $ids) { return empty($ids) || $ids !== array_filter($ids, 'is_int'); } }