Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

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