38 lines
766 B
PHP
38 lines
766 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace KTXF\Resource\Provider\Node;
|
|
|
|
use JsonSerializable;
|
|
|
|
/**
|
|
* Resource Node Properties Read Interface
|
|
*
|
|
* @since 2025.05.01
|
|
*/
|
|
interface NodePropertiesBaseInterface extends JsonSerializable {
|
|
|
|
public const RESOURCE_TYPE = 'resource.data';
|
|
|
|
public const JSON_TYPE = 'resource.data';
|
|
public const JSON_PROPERTY_TYPE = '@type';
|
|
public const JSON_PROPERTY_VERSION = 'version';
|
|
|
|
/**
|
|
* Get resource node properties type
|
|
*/
|
|
public function type(): string;
|
|
|
|
/**
|
|
* Get resource node properties version
|
|
*/
|
|
public function version(): int;
|
|
|
|
}
|