Documentation

LabelRegistry
in package

Creates Packet objects

Tags
category

LibDNS

author

Chris Wright https://github.com/DaveRandom

Table of Contents

Properties

$indexes  : array<string|int, array<string|int, string>>
$labels  : array<string|int, int>

Methods

lookupIndex()  : int|null
Lookup the index of a label
lookupLabel()  : array<string|int, string>|null
Lookup the label at an index
register()  : mixed
Register a new relationship

Properties

$indexes

private array<string|int, array<string|int, string>> $indexes = []

Map of indexes to labels

$labels

private array<string|int, int> $labels = []

Map of labels to indexes

Methods

lookupIndex()

Lookup the index of a label

public lookupIndex(string $label) : int|null
Parameters
$label : string
Return values
int|null

lookupLabel()

Lookup the label at an index

public lookupLabel(int $index) : array<string|int, string>|null
Parameters
$index : int
Return values
array<string|int, string>|null

register()

Register a new relationship

public register(string|array<string|int, string> $labels, int $index) : mixed
Parameters
$labels : string|array<string|int, string>
$index : int

        
On this page

Search results