/** * @param Notification $notification * @return Ticket */ private function loadTicket(Notification $notification) { $uniqueId = new UniqueId($notification->getTicketUniqueId()); $ticket = $this->ticketRepository->getByUniqueId($uniqueId); return $ticket; }