HOME


sh-3ll 1.0
DIR:/proc/thread-self/root/proc/self/root/opt/cpguard/app/vendor/afosto/yaac/src/Data/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/opt/cpguard/app/vendor/afosto/yaac/src/Data/Record.php
<?php

namespace Afosto\Acme\Data;

class Record
{

    /**
     * @var string
     */
    protected $name;

    /**
     * @var string
     */
    protected $value;

    /**
     * Record constructor.
     * @param string $name
     * @param string $value
     */
    public function __construct(string $name, string $value)
    {
        $this->name = $name;
        $this->value = $value;
    }

    /**
     * Return the DNS TXT record name for validation
     * @return string
     */
    public function getName(): string
    {
        return $this->name;
    }

    /**
     * Return the record value for DNS validation
     * @return string
     */
    public function getValue(): string
    {
        return $this->value;
    }
}