* @copyright Meritoo.pl */ class MissingParticipantOfSurveyException extends \Exception { /** * Class constructor * * @param int $surveyId ID of survey * @param string $email E-mail address of the participant */ public function __construct($surveyId, $email) { $template = 'Participant with e-mail %s of survey with ID %s is missing. Maybe was not added to the survey?'; $message = sprintf($template, $email, $surveyId); parent::__construct($message); } }