X

Create New Item

File Folder

X

Search Results

File "DNSRecords.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/egulias/email-validator/src/Validation/DNSRecords.php
File size: 509 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

namespace Egulias\EmailValidator\Validation;

class DNSRecords
{
    /**
     * @param list<array<array-key, mixed>> $records
     * @param bool $error
     */
    public function __construct(private readonly array $records, private readonly bool $error = false)
    {
    }

    /**
     * @return list<array<array-key, mixed>>
     */
    public function getRecords(): array
    {
        return $this->records;
    }

    public function withError(): bool
    {
        return $this->error;
    }
}