mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
docs: add text on watchlist
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user