20250218#1

This commit is contained in:
User
2025-02-18 00:14:52 +03:00
parent e390bc262e
commit bdff890b41

View File

@@ -11,4 +11,21 @@ abstract class AbstractEntity implements EntityInterface {
return (isset($this->id)) ? (($this->id instanceof ValueObjectInterface) ? $this->id->get() : $this->id) : null; 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 ?? "";
}
} }