feat: add Connector to Watchlist

This commit is contained in:
Maël Gangloff
2024-07-28 23:28:03 +02:00
parent 15b2068d9e
commit 1f5c1f812b
3 changed files with 94 additions and 0 deletions

View File

@@ -69,6 +69,9 @@ class WatchList
#[SerializedName("triggers")]
private Collection $watchListTriggers;
#[ORM\ManyToOne(inversedBy: 'watchLists')]
private ?Connector $connector = null;
public function __construct()
{
$this->token = Uuid::v4();
@@ -146,4 +149,16 @@ class WatchList
return $this;
}
public function getConnector(): ?Connector
{
return $this->connector;
}
public function setConnector(?Connector $connector): static
{
$this->connector = $connector;
return $this;
}
}