nextcloud/lib/public/AppFramework/Services/InitialStateProvider.php
Ferdinand Thiessen 81752fc9ed
chore(ocp): add Override attribute to all OCP classes
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-28 21:29:27 +02:00

34 lines
589 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\AppFramework\Services;
/**
* @since 21.0.0
*/
abstract class InitialStateProvider implements \JsonSerializable {
/**
* @since 21.0.0
*/
abstract public function getKey(): string;
/**
* @since 21.0.0
*/
abstract public function getData();
/**
* @since 21.0.0
* @return mixed
*/
#[\Override]
#[\ReturnTypeWillChange]
final public function jsonSerialize() {
return $this->getData();
}
}