Class IdType

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

IntType
IdType implements IdInterface
Package: Shared\Types
Category: System
Located at Shared/Types/IdType.inc.php

Methods summary

public __construct( integer $p_value )

Class Constructor

public __toString( void ) : string

Methods inherited from IntType

asInt()

Properties summary

protected $value : integer

Instance Value