feat: add Connector to WatchListTrigger

This commit is contained in:
Maël Gangloff
2024-07-28 23:39:38 +02:00
parent 1f5c1f812b
commit 50c5b75067
7 changed files with 77 additions and 67 deletions

View File

@@ -26,6 +26,9 @@ class WatchListTrigger
#[Groups(['watchlist:list', 'watchlist:item', 'watchlist:create', 'watchlist:update'])]
private ?TriggerAction $action = null;
#[ORM\ManyToOne(inversedBy: 'watchListTriggers')]
private ?Connector $connector = null;
public function getEvent(): ?string
{
return $this->event;
@@ -61,4 +64,16 @@ class WatchListTrigger
return $this;
}
public function getConnector(): ?Connector
{
return $this->connector;
}
public function setConnector(?Connector $connector): static
{
$this->connector = $connector;
return $this;
}
}