2024-03-09 17:04:44 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
2024-06-02 13:26:54 +00:00
|
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2024-03-09 17:04:44 +00:00
|
|
|
*/
|
|
|
|
namespace OCA\Files_Versions\Versions;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This interface allows for just direct accessing of the metadata column JSON
|
|
|
|
* @since 29.0.0
|
|
|
|
*/
|
|
|
|
interface IMetadataVersion {
|
2024-03-26 11:21:56 +00:00
|
|
|
/**
|
|
|
|
* retrieves the all the metadata
|
|
|
|
*
|
|
|
|
* @return string[]
|
|
|
|
* @since 29.0.0
|
|
|
|
*/
|
|
|
|
public function getMetadata(): array;
|
|
|
|
|
2024-03-09 17:04:44 +00:00
|
|
|
/**
|
2024-03-11 15:33:08 +00:00
|
|
|
* retrieves the metadata value from our $key param
|
2024-03-09 17:04:44 +00:00
|
|
|
*
|
|
|
|
* @param string $key the key for the json value of the metadata column
|
|
|
|
* @since 29.0.0
|
|
|
|
*/
|
2024-03-11 13:11:53 +00:00
|
|
|
public function getMetadataValue(string $key): ?string;
|
2024-03-09 17:04:44 +00:00
|
|
|
}
|