Documentation

BitMap extends Type
in package

Represents a bit map

Tags
category

LibDNS

author

Chris Wright https://github.com/DaveRandom

Table of Contents

Properties

$value  : string

Methods

__construct()  : mixed
Constructor
__toString()  : string
Magic method for type coercion to string
getValue()  : mixed
Get the internal value
isBitSet()  : bool
Inspect the value of the bit at the specific index and optionally set a new value
setValue()  : mixed
Set the internal value

Properties

$value

protected string $value = ''

Methods

__construct()

Constructor

public __construct([string $value = null ]) : mixed
Parameters
$value : string = null

Internal value

Tags
throws
RuntimeException

When the supplied value is invalid

__toString()

Magic method for type coercion to string

public __toString() : string
Return values
string

getValue()

Get the internal value

public getValue() : mixed

isBitSet()

Inspect the value of the bit at the specific index and optionally set a new value

public isBitSet(int $index[, bool $newValue = null ]) : bool
Parameters
$index : int
$newValue : bool = null

The new value

Return values
bool

The old value

setValue()

Set the internal value

public setValue(string $value) : mixed
Parameters
$value : string

The new value


        
On this page

Search results