Question
extends Record
in package
Represents a DNS question record
Tags
Table of Contents
Properties
- $class : int
- $name : DomainName
- $type : int
- $typeFactory : TypeFactory
Methods
- __construct() : mixed
- Constructor
- getClass() : int
- Get the value of the record class field
- getName() : DomainName
- Get the value of the record name field
- getType() : int
- Get the value of the record type field
- setClass() : mixed
- Set the value of the record class field
- setName() : mixed
- Set the value of the record name field
Properties
$class
protected
int
$class
= \LibDNS\Records\ResourceClasses::IN
$name
protected
DomainName
$name
$type
protected
int
$type
$typeFactory
protected
TypeFactory
$typeFactory
Methods
__construct()
Constructor
public
__construct(TypeFactory $typeFactory, int $type) : mixed
Parameters
- $typeFactory : TypeFactory
- $type : int
-
Resource type being requested, can be indicated using the ResourceQTypes enum
getClass()
Get the value of the record class field
public
getClass() : int
Return values
intgetName()
Get the value of the record name field
public
getName() : DomainName
Return values
DomainNamegetType()
Get the value of the record type field
public
getType() : int
Return values
intsetClass()
Set the value of the record class field
public
setClass(int $class) : mixed
Parameters
- $class : int
-
The new value, can be indicated using the ResourceClasses/ResourceQClasses enums
Tags
setName()
Set the value of the record name field
public
setName(string|DomainName $name) : mixed
Parameters
- $name : string|DomainName