20250218#4
This commit is contained in:
@@ -8,7 +8,7 @@ abstract class AbstractEntity implements EntityInterface {
|
||||
* @return mixed
|
||||
*/
|
||||
public function getId(): mixed {
|
||||
return (isset($this->id)) ? (($this->id instanceof ValueObjectInterface) ? $this->id->get() : $this->id) : null;
|
||||
return (isset($this->id)) ? (($this->id instanceof ValueObjectInterface) ? $this->id->getValue() : $this->id) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Rmphp\Storage\Entity;
|
||||
|
||||
interface ValueObjectInterface {
|
||||
|
||||
public function get();
|
||||
public function getValue();
|
||||
public function __toString(): string;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user