29d4c9130f
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
37 lines
1003 B
PHP
37 lines
1003 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace KTXF\Documents\Entity;
|
|
|
|
use KTXF\Resource\Identifier\EntityIdentifier;
|
|
use KTXF\Resource\Provider\Node\NodeBaseAbstract;
|
|
|
|
/**
|
|
* Abstract Documents Entity Base Class
|
|
*
|
|
* Provides common implementation for chrono entities
|
|
*
|
|
* @since 2025.05.01
|
|
*/
|
|
abstract class EntityBaseAbstract extends NodeBaseAbstract implements EntityBaseInterface {
|
|
|
|
protected EntityPropertiesBaseAbstract $properties;
|
|
|
|
protected function nodeIdentifier(): EntityIdentifier {
|
|
return new EntityIdentifier($this->data[static::PROPERTY_PROVIDER], $this->data[static::PROPERTY_SERVICE], (string) $this->data[static::PROPERTY_COLLECTION], (string) $this->data[static::PROPERTY_IDENTIFIER]);
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getProperties(): EntityPropertiesBaseInterface {
|
|
return $this->properties;
|
|
}
|
|
}
|