1
0

MissingIndexInformation.php 540 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\DB;
  8. class MissingIndexInformation {
  9. private array $listOfMissingIndices = [];
  10. public function addHintForMissingIndex(string $tableName, string $indexName): void {
  11. $this->listOfMissingIndices[] = [
  12. 'tableName' => $tableName,
  13. 'indexName' => $indexName
  14. ];
  15. }
  16. public function getListOfMissingIndices(): array {
  17. return $this->listOfMissingIndices;
  18. }
  19. }