Files
server/shared/lib/Documents/Entity/EntityPropertiesBaseAbstract.php
T
2026-07-09 19:31:09 -04:00

39 lines
968 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\Provider\Node\NodePropertiesBaseAbstract;
abstract class EntityPropertiesBaseAbstract extends NodePropertiesBaseAbstract implements EntityPropertiesBaseInterface {
public const JSON_TYPE = EntityPropertiesBaseInterface::JSON_TYPE;
public function size(): int {
return $this->data[self::PROPERTY_SIZE] ?? 0;
}
public function getLabel(): string {
return $this->data[self::PROPERTY_LABEL] ?? '';
}
public function getMime(): string {
return $this->data[self::PROPERTY_MIME] ?? '';
}
public function getFormat(): string {
return $this->data[self::PROPERTY_FORMAT] ?? '';
}
public function getEncoding(): string {
return $this->data[self::PROPERTY_ENCODING] ?? '';
}
}