BitMap
extends Type
in package
Represents a bit map
Tags
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
__toString()
Magic method for type coercion to string
public
__toString() : string
Return values
stringgetValue()
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