Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | 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
{
7
 
8
    /**
9
     * @var array $records
10
     */
11
    private $records = [];
12
 
13
    /**
14
     * @var bool $error
15
     */
16
    private $error = false;
17
 
18
    public function __construct(array $records, bool $error = false)
19
    {
20
        $this->records = $records;
21
        $this->error = $error;
22
    }
23
 
24
    public function getRecords() : array
25
    {
26
        return $this->records;
27
    }
28
 
29
    public function withError() : bool
30
    {
31
        return $this->error;
32
    }
33
 
34
 
35
}