[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/composer/vendor/egulias/email-validator/EmailValidator/Validation/ -> EmailValidation.php (source)

   1  <?php
   2  
   3  namespace Egulias\EmailValidator\Validation;
   4  
   5  use Egulias\EmailValidator\EmailLexer;
   6  use Egulias\EmailValidator\Exception\InvalidEmail;
   7  use Egulias\EmailValidator\Warning\Warning;
   8  
   9  interface EmailValidation
  10  {
  11      /**
  12       * Returns true if the given email is valid.
  13       *
  14       * @param string     $email      The email you want to validate.
  15       * @param EmailLexer $emailLexer The email lexer.
  16       *
  17       * @return bool
  18       */
  19      public function isValid($email, EmailLexer $emailLexer);
  20  
  21      /**
  22       * Returns the validation error.
  23       *
  24       * @return InvalidEmail|null
  25       */
  26      public function getError();
  27  
  28      /**
  29       * Returns the validation warnings.
  30       *
  31       * @return Warning[]
  32       */
  33      public function getWarnings();
  34  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1