public function validateEmail($email)
    {
        if (empty($email)) {
            return false;
        }

        $validationViolationList = $this
            ->validator
            ->validate($email, new Email());

        return $validationViolationList->count() === 0;
    }
public function validateEmail($email)
    {
        if (empty($email)) {
            return false;
        }

        $validationViolationList = $this
            ->validator
            ->validate($email, new Email());

        return $validationViolationList->count() === 0;
    }
public function validateEmail ( $ email ) { if ( empty ( $ email ) ) { return false ; } $ validationViolationList = $ this -> validator -> validate ( $ email , new Email ( ) ) ; return $ validationViolationList -> count ( ) === 0 ; }
Return if email is valid.

@param string $email Email

@return bool Email is valid
Return if email is valid .