DecodingContext
in package
Holds data associated with a decode operation
Tags
Table of Contents
Properties
- $expectedAdditionalRecords : int
- $expectedAnswerRecords : int
- $expectedAuthorityRecords : int
- $expectedQuestionRecords : int
- $labelRegistry : LabelRegistry
- $packet : Packet
Methods
- __construct() : mixed
- Constructor
- getExpectedAdditionalRecords() : int
- Get the number of additional records expected in the message
- getExpectedAnswerRecords() : int
- Get the number of answer records expected in the message
- getExpectedAuthorityRecords() : int
- Get the number of authority records expected in the message
- getExpectedQuestionRecords() : int
- Get the number of question records expected in the message
- getLabelRegistry() : LabelRegistry
- Get the label registry
- getPacket() : Packet
- Get the packet
- setExpectedAdditionalRecords() : mixed
- Set the number of additional records expected in the message
- setExpectedAnswerRecords() : mixed
- Set the number of answer records expected in the message
- setExpectedAuthorityRecords() : mixed
- Set the number of authority records expected in the message
- setExpectedQuestionRecords() : mixed
- Get the number of question records expected in the message
Properties
$expectedAdditionalRecords
private
int
$expectedAdditionalRecords
= 0
$expectedAnswerRecords
private
int
$expectedAnswerRecords
= 0
$expectedAuthorityRecords
private
int
$expectedAuthorityRecords
= 0
$expectedQuestionRecords
private
int
$expectedQuestionRecords
= 0
$labelRegistry
private
LabelRegistry
$labelRegistry
$packet
private
Packet
$packet
Methods
__construct()
Constructor
public
__construct(Packet $packet, LabelRegistry $labelRegistry) : mixed
Parameters
- $packet : Packet
- $labelRegistry : LabelRegistry
getExpectedAdditionalRecords()
Get the number of additional records expected in the message
public
getExpectedAdditionalRecords() : int
Return values
intgetExpectedAnswerRecords()
Get the number of answer records expected in the message
public
getExpectedAnswerRecords() : int
Return values
intgetExpectedAuthorityRecords()
Get the number of authority records expected in the message
public
getExpectedAuthorityRecords() : int
Return values
intgetExpectedQuestionRecords()
Get the number of question records expected in the message
public
getExpectedQuestionRecords() : int
Return values
intgetLabelRegistry()
Get the label registry
public
getLabelRegistry() : LabelRegistry
Return values
LabelRegistrygetPacket()
Get the packet
public
getPacket() : Packet
Return values
PacketsetExpectedAdditionalRecords()
Set the number of additional records expected in the message
public
setExpectedAdditionalRecords(int $expectedAdditionalRecords) : mixed
Parameters
- $expectedAdditionalRecords : int
setExpectedAnswerRecords()
Set the number of answer records expected in the message
public
setExpectedAnswerRecords(int $expectedAnswerRecords) : mixed
Parameters
- $expectedAnswerRecords : int
setExpectedAuthorityRecords()
Set the number of authority records expected in the message
public
setExpectedAuthorityRecords(int $expectedAuthorityRecords) : mixed
Parameters
- $expectedAuthorityRecords : int
setExpectedQuestionRecords()
Get the number of question records expected in the message
public
setExpectedQuestionRecords(int $expectedQuestionRecords) : mixed
Parameters
- $expectedQuestionRecords : int