1
0

MissingPrimaryKeyInformation.php 518 B

1234567891011121314151617181920212223
  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 MissingPrimaryKeyInformation {
  9. private array $listOfMissingPrimaryKeys = [];
  10. public function addHintForMissingPrimaryKey(string $tableName): void {
  11. $this->listOfMissingPrimaryKeys[] = [
  12. 'tableName' => $tableName,
  13. ];
  14. }
  15. public function getListOfMissingPrimaryKeys(): array {
  16. return $this->listOfMissingPrimaryKeys;
  17. }
  18. }