Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Egulias\EmailValidator\Validation;
4
 
5
class DNSRecords
6
{
150 lars 7
 
148 lars 8
    /**
9
     * @var array $records
10
     */
11
    private $records = [];
12
 
13
    /**
14
     * @var bool $error
15
     */
16
    private $error = false;
17
 
150 lars 18
    /**
19
     * @param array $records
20
     * @param bool $error
21
     */
148 lars 22
    public function __construct(array $records, bool $error = false)
23
    {
24
        $this->records = $records;
25
        $this->error = $error;
26
    }
27
 
150 lars 28
    /**
29
     * @return array
30
     */
31
    public function getRecords(): array
148 lars 32
    {
33
        return $this->records;
34
    }
35
 
150 lars 36
    public function withError(): bool
148 lars 37
    {
38
        return $this->error;
39
    }
40
}