IMetadataVersion.php 679 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Files_Versions\Versions;
  8. /**
  9. * This interface allows for just direct accessing of the metadata column JSON
  10. * @since 29.0.0
  11. */
  12. interface IMetadataVersion {
  13. /**
  14. * retrieves the all the metadata
  15. *
  16. * @return string[]
  17. * @since 29.0.0
  18. */
  19. public function getMetadata(): array;
  20. /**
  21. * retrieves the metadata value from our $key param
  22. *
  23. * @param string $key the key for the json value of the metadata column
  24. * @since 29.0.0
  25. */
  26. public function getMetadataValue(string $key): ?string;
  27. }