File "DNSRecords.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/egulias/email-validator/src/Validation/DNSRecords.php
File size: 461 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Egulias\EmailValidator\Validation;

class DNSRecords
{
    /**
     * @param array $records
     * @param bool $error
     */
    public function __construct(private readonly array $records, private readonly bool $error = false)
    {
    }

    /**
     * @return array
     */
    public function getRecords(): array
    {
        return $this->records;
    }

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