Files
rmphp-storage/src/Entity/AbstractEntity.php
2025-01-13 04:23:59 +03:00

15 lines
286 B
PHP

<?php
namespace Rmphp\Storage\Entity;
abstract class AbstractEntity implements EntityInterface {
/**
* @return int|null
*/
public function getId(): mixed {
return (isset($this->id)) ? (($this->id instanceof ValueObjectInterface) ? $this->id->get() : $this->id) : null;
}
}