getQueryParam('id')) { throw new BadRequest(); } if (!$this->getAcl()->checkScope($this->name, 'read')) { throw new Forbidden(); } return $this->getCaseService()->getEmailAddressList($request->getQueryParam('id')); } private function getCaseService(): Service { /** @var Service */ return $this->getRecordService(); } }