2024-03-09 12:04:44 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-06-02 09:26:54 -04:00
|
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2024-03-09 12:04:44 -05: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 07:21:56 -04:00
|
|
|
/**
|
|
|
|
|
* retrieves the all the metadata
|
|
|
|
|
*
|
|
|
|
|
* @return string[]
|
|
|
|
|
* @since 29.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getMetadata(): array;
|
|
|
|
|
|
2024-03-09 12:04:44 -05:00
|
|
|
/**
|
2024-03-11 11:33:08 -04:00
|
|
|
* retrieves the metadata value from our $key param
|
2024-03-09 12:04:44 -05:00
|
|
|
*
|
|
|
|
|
* @param string $key the key for the json value of the metadata column
|
|
|
|
|
* @since 29.0.0
|
|
|
|
|
*/
|
2024-03-11 09:11:53 -04:00
|
|
|
public function getMetadataValue(string $key): ?string;
|
2024-03-09 12:04:44 -05:00
|
|
|
}
|