Documentation

FieldDefinition
in package

Defines a field in a type

Tags
category

LibDNS

author

Chris Wright https://github.com/DaveRandom

Table of Contents

Properties

$allowsMultiple  : bool
$index  : int
$minimumValues  : int
$name  : string
$type  : int

Methods

__construct()  : mixed
Constructor
allowsMultiple()  : bool
Determine whether the field allows multiple values
assertDataValid()  : bool
Assert that a Type object is valid for this field
getIndex()  : int
Get the index of the field in the containing type
getMinimumValues()  : int
Get the minimum number of values for the field
getName()  : string
Get the name of the field
getType()  : int
Get the type of the field

Properties

Methods

__construct()

Constructor

public __construct(int $index, string $name, int $type, bool $allowsMultiple, int $minimumValues) : mixed
Parameters
$index : int
$name : string
$type : int
$allowsMultiple : bool
$minimumValues : int

allowsMultiple()

Determine whether the field allows multiple values

public allowsMultiple() : bool
Return values
bool

assertDataValid()

Assert that a Type object is valid for this field

public assertDataValid(Type $value) : bool
Parameters
$value : Type
Return values
bool

getIndex()

Get the index of the field in the containing type

public getIndex() : int
Return values
int

getMinimumValues()

Get the minimum number of values for the field

public getMinimumValues() : int
Return values
int

getName()

Get the name of the field

public getName() : string
Return values
string

getType()

Get the type of the field

public getType() : int
Return values
int

        
On this page

Search results