Home  Support  API

Integer Class Reference
[Types]


Represents a box for signed integer.

Definition at line 24 of file Integer.class.php.

Inheritance diagram for Integer:
Inheritance graph

List of all members.

Static Public Member Functions

static cast ($value)
 Casts scalar to the corresponding object wrapper.
static getOrmPropertyType (AssociationMultiplicity $multiplicity)
 Gets the auxiliary type wrapper that describes the type.

Public Member Functions

 __toString ()
 Returns a string representation of an object.
 getValue ()
 Gets the scalar value of an object.
 setValue ($value)
 Sets the internal value.

Protected Member Functions

 isValidValue ($value)
 Checks whether the primitive value is suitable for wrapping with this class.

Member Function Documentation

Primitive::__toString (  )  [inherited]

Returns a string representation of an object.

Returns:
string

Implements IStringCastable.

Definition at line 62 of file Primitive.class.php.

static Integer::cast ( value  )  [static]

Casts scalar to the corresponding object wrapper.

Parameters:
scalar 
Returns:
IObjectCastable
Exceptions:
TypeCastException 

Reimplemented from Decimal.

Definition at line 26 of file Integer.class.php.

static Integer::getOrmPropertyType ( AssociationMultiplicity multiplicity  )  [static]

Gets the auxiliary type wrapper that describes the type.

Returns:
OrmPropertyType

Reimplemented from Scalar.

Definition at line 31 of file Integer.class.php.

References DBType::INT32, and AssociationMultiplicity::isNullable().

Integer::getValue (  ) 

Gets the scalar value of an object.

Returns:
scalar

Reimplemented from Primitive.

Definition at line 45 of file Integer.class.php.

Integer::isValidValue ( value  )  [protected]

Checks whether the primitive value is suitable for wrapping with this class.

Returns:
boolean

Reimplemented from Decimal.

Definition at line 50 of file Integer.class.php.

References TypeUtils::isInteger().

Numeric::setValue ( value  )  [inherited]

Sets the internal value.

Returns:
BuiltInType

Reimplemented from Primitive.

Definition at line 31 of file Numeric.class.php.


The documentation for this class was generated from the following file: