feat: profile page for administrative users and muting of notifications
This commit is contained in:
@@ -54,6 +54,9 @@ class User implements UserInterface, TimestampableEntityInterface
|
||||
#[ORM\Column(length: 32, nullable: true)]
|
||||
private ?string $hotelCode = null;
|
||||
|
||||
#[ORM\Column]
|
||||
private bool $muteNotifications = false;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->uuid = Uuid::v4();
|
||||
@@ -264,4 +267,16 @@ class User implements UserInterface, TimestampableEntityInterface
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isMuteNotifications(): bool
|
||||
{
|
||||
return $this->muteNotifications;
|
||||
}
|
||||
|
||||
public function setMuteNotifications(bool $muteNotifications): static
|
||||
{
|
||||
$this->muteNotifications = $muteNotifications;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user