IdType
extends IntType
in package
implements
IdInterface
Class IdType
IMPORTANT: When you need to cast an Id object to integer, cast it first to string, because otherwise the following command will return always 1:
EXAMPLE: $id = new IdType(948); bad - (int)$id >> 1 good - (int)(string)$id >> 948
Tags
Interfaces, Classes and Traits
- IdInterface
- Class IdInterface
Table of Contents
- $value : int
- Instance Value
- __construct() : mixed
- Class Constructor
- __toString() : string
- asInt() : int
- Get the instance value as int.
Properties
$value
Instance Value
protected
int
$value
Methods
__construct()
Class Constructor
public
__construct(int $p_value) : mixed
Parameters
- $p_value : int
Tags
Return values
mixed —__toString()
public
__toString() : string
Tags
Return values
string —asInt()
Get the instance value as int.
public
asInt() : int