diff --git a/src/Entity/AbstractEntity.php b/src/Entity/AbstractEntity.php index 9c2fb09..fca136c 100644 --- a/src/Entity/AbstractEntity.php +++ b/src/Entity/AbstractEntity.php @@ -11,4 +11,21 @@ abstract class AbstractEntity implements EntityInterface { return (isset($this->id)) ? (($this->id instanceof ValueObjectInterface) ? $this->id->get() : $this->id) : null; } + /** + * @param string $name + * @param $value + * @return void + */ + public function __set(string $name, $value): void { + $this->$name = $value; + } + + /** + * @param string $name + * @return string + */ + public function __get(string $name) { + return $this->$name ?? ""; + } + }