<?php namespace Egulias\EmailValidator\Validation; class DNSRecords { /** * @var array $records */ private $records = []; /** * @var bool $error */ private $error = false; /** * @param array $records * @param bool $error */ public function __construct(array $records, bool $error = false) { $this->records = $records; $this->error = $error; } /** * @return array */ public function getRecords(): array { return $this->records; } public function withError(): bool { return $this->error; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Exception | Folder | 0755 |
|
|
Extra | Folder | 0755 |
|
|
DNSCheckValidation.php | File | 5.45 KB | 0644 |
|
DNSGetRecordWrapper.php | File | 909 B | 0644 |
|
DNSRecords.php | File | 634 B | 0644 |
|
EmailValidation.php | File | 786 B | 0644 |
|
MessageIDValidation.php | File | 1.27 KB | 0644 |
|
MultipleValidationWithAnd.php | File | 2.92 KB | 0644 |
|
NoRFCWarningsValidation.php | File | 845 B | 0644 |
|
RFCValidation.php | File | 1.34 KB | 0644 |
|