diff --git a/src/Entity/AbstractEntity.php b/src/Entity/AbstractEntity.php index fca136c..acb4e86 100644 --- a/src/Entity/AbstractEntity.php +++ b/src/Entity/AbstractEntity.php @@ -5,7 +5,7 @@ namespace Rmphp\Storage\Entity; abstract class AbstractEntity implements EntityInterface { /** - * @return int|null + * @return mixed */ public function getId(): mixed { return (isset($this->id)) ? (($this->id instanceof ValueObjectInterface) ? $this->id->get() : $this->id) : null; diff --git a/src/Entity/EntityInterface.php b/src/Entity/EntityInterface.php index 6639e60..715c7d0 100644 --- a/src/Entity/EntityInterface.php +++ b/src/Entity/EntityInterface.php @@ -11,7 +11,7 @@ namespace Rmphp\Storage\Entity; interface EntityInterface { /** - * @return int|null + * @return mixed */ public function getId(): mixed;