* @copyright Meritoo.pl */ class ParticipantsDetails extends BaseParticipantsCollection { /** * Returns information if survey with given ID has participant with given e-mail address * * @param int $surveyId ID of survey * @param string $participantEmail E-mail of searched participant * @return bool */ public function hasParticipantOfSurvey($surveyId, $participantEmail) { return null !== $this->getParticipantOfSurvey($surveyId, $participantEmail); } }