1
0
mirror of synced 2024-11-22 03:46:02 +03:00

Added is_system to User

This commit is contained in:
Alex Komarichev 2024-11-05 12:28:27 +03:00
parent 95520bb1e7
commit 2b798fa877

View File

@ -142,6 +142,15 @@ class User implements ModelInterface
*/ */
private $revokedAt; private $revokedAt;
/**
* @var bool $isSystem
*
* @Type("bool")
* @Accessor(getter="isSystem",setter="setIsSystem")
* @SkipWhenEmpty()
*/
private $isSystem;
/** /**
* @return string|null * @return string|null
*/ */
@ -349,4 +358,20 @@ class User implements ModelInterface
{ {
$this->revokedAt = $revokedAt; $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;
}
} }