mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 17:15:02 +00:00
Use enums in flag providers and rename NotificationEnum to NotificationFlagEnum
This commit is contained in:
@@ -101,8 +101,8 @@ class Notification implements TrackUpdateInterface
|
||||
#[ORM\ManyToOne(targetEntity: User::class)]
|
||||
private ?User $updatedBy = null;
|
||||
|
||||
#[ORM\Column(name: 'type', type: Types::STRING, nullable: true, enumType: NotificationEnum::class)]
|
||||
private NotificationEnum $type;
|
||||
#[ORM\Column(name: 'type', type: Types::STRING, nullable: true, enumType: NotificationFlagEnum::class)]
|
||||
private NotificationFlagEnum $type;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
@@ -394,14 +394,14 @@ class Notification implements TrackUpdateInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setType(NotificationEnum $type): self
|
||||
public function setType(NotificationFlagEnum $type): self
|
||||
{
|
||||
$this->type = $type;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getType(): NotificationEnum
|
||||
public function getType(): NotificationFlagEnum
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
Reference in New Issue
Block a user