[ Index ]

MailPress 7.2

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

title

Body

[close]

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

   1  <?php
   2  
   3  namespace Egulias\EmailValidator\Validation;
   4  
   5  use Egulias\EmailValidator\Exception\InvalidEmail;
   6  
   7  class MultipleErrors extends InvalidEmail
   8  {
   9      const CODE = 999;
  10      const REASON = "Accumulated errors for multiple validations";
  11      /**
  12       * @var array
  13       */
  14      private $errors = [];
  15  
  16      public function __construct(array $errors)
  17      {
  18          $this->errors = $errors;
  19          parent::__construct();
  20      }
  21  
  22      public function getErrors()
  23      {
  24          return $this->errors;
  25      }
  26  }


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