RecordPlain
    
            
            in package
            
        
    
            
            implements
                            Record                    
    
    
A simple record representation
Table of Contents
Interfaces
Properties
- $comment : string
- $name : string
- $ttl : int
- $type : string
- $value : string|array<string|int, string>
Methods
- __construct() : mixed
- getComment() : string
- A comment on the record
- getName() : string
- The record name
- getTtl() : int
- The TTL value
- getType() : string
- The record type
- getValue() : string|array<string|int, string>
- The record value
Properties
$comment
    private
        string
    $comment
    
    
    
    
    
$name
    private
        string
    $name
    
    
    
    
    
$ttl
    private
        int
    $ttl
    
    
    
    
    
$type
    private
        string
    $type
    
    
    
    
    
$value
    private
        string|array<string|int, string>
    $value
    
    
    
    
    
Methods
__construct()
    public
                    __construct(string $name, string $type, int $ttl, mixed $value[, string $comment = '' ]) : mixed
    Parameters
- $name : string
- $type : string
- $ttl : int
- $value : mixed
- $comment : string = ''
getComment()
A comment on the record
    public
                    getComment() : string
    Backends which do not implement a comment option should return an empty string
Return values
string —The comment
getName()
The record name
    public
                    getName() : string
    Return values
string —The record's name
getTtl()
The TTL value
    public
                    getTtl() : int
    Governs how long a record may be cached by clients or downstream DNS servers
Return values
int —The TTL
getType()
The record type
    public
                    getType() : string
    Most prominent types are: A IPv4 host records, hostname to IP AAAA IPv6 host records, hostname to IP CNAME A lookup from one hostname to another hostname TXT Data records, for example anti spam or verification SRV Service lookup MX Mail handling delegation (righthand handles SMTP for lefthand) NS Point to a related name server
Return values
string —Type Designation
getValue()
The record value
    public
                    getValue() : string|array<string|int, string>
    Depending on record type, this is a string or list of strings
Return values
string|array<string|int, string> —The comment