From 2b798fa8776130318597f1158238b847c5564931 Mon Sep 17 00:00:00 2001 From: Alex Komarichev Date: Tue, 5 Nov 2024 12:28:27 +0300 Subject: [PATCH] Added is_system to User --- src/Bot/Model/Entity/User.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Bot/Model/Entity/User.php b/src/Bot/Model/Entity/User.php index eac6bae..d9b1506 100644 --- a/src/Bot/Model/Entity/User.php +++ b/src/Bot/Model/Entity/User.php @@ -142,6 +142,15 @@ class User implements ModelInterface */ private $revokedAt; + /** + * @var bool $isSystem + * + * @Type("bool") + * @Accessor(getter="isSystem",setter="setIsSystem") + * @SkipWhenEmpty() + */ + private $isSystem; + /** * @return string|null */ @@ -349,4 +358,20 @@ class User implements ModelInterface { $this->revokedAt = $revokedAt; } + + /** + * @return bool|null + */ + public function isSystem(): ?bool + { + return $this->isSystem; + } + + /** + * @param bool $isSystem + */ + public function setIsSystem(bool $isSystem): void + { + $this->isSystem = $isSystem; + } }