docs: add text on watchlist

This commit is contained in:
Maël Gangloff
2025-01-03 15:40:22 +01:00
parent 8b8e6ddbe5
commit fcd5c2e861
3 changed files with 68 additions and 32 deletions

View File

@@ -67,6 +67,9 @@ class Connector
#[ORM\Column]
private ?\DateTimeImmutable $createdAt = null;
#[Groups(['connector:list'])]
protected int $watchlistCount;
public function __construct()
{
$this->id = Uuid::v4();
@@ -155,4 +158,9 @@ class Connector
return $this;
}
public function getWatchlistCount(): ?int
{
return $this->watchLists->count();
}
}