mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add trackedEppStatus field in Watchlist
This commit is contained in:
@@ -199,6 +199,15 @@ class WatchList
|
||||
])]
|
||||
private array $trackedEvents = [];
|
||||
|
||||
#[ORM\Column(type: Types::JSON)]
|
||||
#[Groups(['watchlist:list', 'watchlist:item', 'watchlist:create', 'watchlist:update'])]
|
||||
#[Assert\Unique]
|
||||
#[Assert\All([
|
||||
new Assert\Type('string'),
|
||||
new Assert\NotBlank(),
|
||||
])]
|
||||
private array $trackedEppStatus = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->token = Uuid::v4();
|
||||
@@ -311,4 +320,16 @@ class WatchList
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTrackedEppStatus(): array
|
||||
{
|
||||
return $this->trackedEppStatus;
|
||||
}
|
||||
|
||||
public function setTrackedEppStatus(array $trackedEppStatus): static
|
||||
{
|
||||
$this->trackedEppStatus = $trackedEppStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user