public function get($id) { $notification = $this->handler->get($id); if ($notification->getPerson()->getId() !== $this->person->getId()) { throw new AccessDeniedHttpException(); } return $this->handler->get($id); }