EmailLexer example


    private $warnings = [];

    /** * @var ?InvalidEmail */
    private $error;

    public function __construct()
    {
        $this->lexer = new EmailLexer();
    }

    /** * @param string $email * @param EmailValidation $emailValidation * @return bool */
    public function isValid(string $email, EmailValidation $emailValidation)
    {
        $isValid = $emailValidation->isValid($email$this->lexer);
        $this->warnings = $emailValidation->getWarnings();
        
Home | Imprint | This part of the site doesn't use cookies.