-
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5ea1fb
commit e9c46ee
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,20 +32,23 @@ $validator->isValid("[email protected]", new RFCValidation()) //true | |
2. [NoWarningsRFCValidation](https://github.com/egulias/EmailValidator/blob/master/EmailValidator/Validation/NoRFCWarningsValidation.php) | ||
3. [DNSCheckValidation](https://github.com/egulias/EmailValidator/blob/master/EmailValidator/Validation/DNSCheckValidation.php) | ||
4. [SpoofCheckValidation](https://github.com/egulias/EmailValidator/blob/master/EmailValidator/Validation/SpoofCheckValidation.php) | ||
5. [MultipleValidationsWithAnd](https://github.com/egulias/EmailValidator/blob/master/EmailValidator/Validation/MultipleValidationWithAnd.php) | ||
5. [MultipleValidationWithAnd](https://github.com/egulias/EmailValidator/blob/master/EmailValidator/Validation/MultipleValidationWithAnd.php) | ||
6. [Your own validation](#how-to-extend) | ||
|
||
`MultipleValidationsWithAnd` | ||
`MultipleValidationWithAnd` | ||
|
||
It is a validation that operates over other validations performing a logical and (&&) over the result of each validation. | ||
|
||
```php | ||
<?php | ||
|
||
use Egulias\EmailValidator\EmailValidator; | ||
use Egulias\EmailValidator\Validation\DNSCheckValidation; | ||
use Egulias\EmailValidator\Validation\MultipleValidationWithAnd; | ||
use Egulias\EmailValidator\Validation\RFCValidation; | ||
|
||
$validator = new EmailValidator(); | ||
$multipleValidations = new MultipleValidationsWithAnd([ | ||
$multipleValidations = new MultipleValidationWithAnd([ | ||
new RFCValidation(), | ||
new DNSCheckValidation() | ||
]) | ||
|