From c516546b5d60a36f98fcce4cb97504f3000b714e Mon Sep 17 00:00:00 2001 From: User Date: Wed, 26 Mar 2025 16:02:27 +0300 Subject: [PATCH] 20250326#1 --- src/Entity/AbstractEntity.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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); + } + }