Skip to content

Commit

Permalink
Added is_system to User
Browse files Browse the repository at this point in the history
  • Loading branch information
Neur0toxine authored Nov 5, 2024
2 parents 95520bb + 2b798fa commit 2d5a8ce
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Bot/Model/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -349,4 +358,20 @@ public function setRevokedAt(\DateTime $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;
}
}

0 comments on commit 2d5a8ce

Please sign in to comment.