newsletter; } /** * @return SendingQueueEntity|null */ public function getQueue() { return $this->queue; } /** * @return string|null */ public function getUrl() { return $this->url; } /** * @return string|null */ public function getHash() { return $this->hash; } /** * @return int */ function getTotalClicksCount() { $criteria = Criteria::create() ->where(Criteria::expr()->eq("link", $this)); return $this->clicks->matching($criteria)->count(); } }