diff --git a/src/Entity/AbstractEntity.php b/src/Entity/AbstractEntity.php index 8ebc1bb..ff60a87 100644 --- a/src/Entity/AbstractEntity.php +++ b/src/Entity/AbstractEntity.php @@ -28,4 +28,12 @@ abstract class AbstractEntity implements EntityInterface { return $this->$name ?? ""; } + /** + * @param string $name + * @return bool + */ + public function __isset(string $name): bool { + return isset($this->$name); + } + }