1
0

MissingColumnInformation.php 546 B

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