interface CasterInterface (View source)

Methods

boolean
castBoolean()

Casts the given $value to boolean.

string
castBinary()

Casts the given $value to a binary.

mixed
castByte()

Casts the given $value to a byte.

castDate()

Casts the given $value to a DateTime object.

castDateTime()

Casts the given $value to a DateTime object.

float
castDouble()

Casts the given $value to a double (well.

mixed
castEmbedded()

Given an embedded record, it uses the mapper to hydrate it.

Array
castEmbeddedList()

Casts a list of embedded entities

Array
castEmbeddedMap()

Casts a map (key-value preserved) of embedded entities

Array
castEmbeddedSet()

Casts a set of embedded entities

float
castFloat()

Casts the value to a float.

integer
castInteger()

Casts the value into an integer.

mixed|null
castLink()

Casts the current internal value into an hydrated object through a Doctrine\OrientDB\ODM\Mapper object, finding it by rid.

Array
castLinkset()

Hydrates multiple objects through a Mapper.

Array
castLinklist()

Hydrates multiple objects through a Mapper.

Array
castLinkmap()

Hydrates multiple objects through a Mapper.

mixed
castLong()

Casts the given $value to a long.

integer
castInBuffer(integer $limit, string $type)

Casts the current value into an integer verifying it belongs to a certain range ( -$limit < $value > + $limit ).

string
castString()

Casts the value to string.

mixed
castShort()

Casts the value to a short.

setProperty(string $key, mixed $property)

Defines properties that can be internally used by the caster.

setValue(mixed $value)

Sets the internal value to work with.

Details

boolean castBoolean()

Casts the given $value to boolean.

Return Value

boolean

string castBinary()

Casts the given $value to a binary.

Return Value

string

mixed castByte()

Casts the given $value to a byte.

Return Value

mixed

DateTime castDate()

Casts the given $value to a DateTime object.

Return Value

DateTime

DateTime castDateTime()

Casts the given $value to a DateTime object.

Return Value

DateTime

float castDouble()

Casts the given $value to a double (well.

.. float).

Return Value

float

mixed castEmbedded()

Given an embedded record, it uses the mapper to hydrate it.

Return Value

mixed

Array castEmbeddedList()

Casts a list of embedded entities

Return Value

Array

Array castEmbeddedMap()

Casts a map (key-value preserved) of embedded entities

Return Value

Array

Array castEmbeddedSet()

Casts a set of embedded entities

Return Value

Array

float castFloat()

Casts the value to a float.

Return Value

float

integer castInteger()

Casts the value into an integer.

Return Value

integer

Casts the current internal value into an hydrated object through a Doctrine\OrientDB\ODM\Mapper object, finding it by rid.

If the internal value is not a rid but an already decoded orient object, it simply hydrates it.

Array castLinkset()

Hydrates multiple objects through a Mapper.

Return Value

Array

Hydrates multiple objects through a Mapper.

Return Value

Array

Array castLinkmap()

Hydrates multiple objects through a Mapper.

Return Value

Array

mixed castLong()

Casts the given $value to a long.

Return Value

mixed

integer castInBuffer(integer $limit, string $type)

Casts the current value into an integer verifying it belongs to a certain range ( -$limit < $value > + $limit ).

Parameters

integer $limit
string $type

Return Value

integer

Exceptions

Overflow

string castString()

Casts the value to string.

Return Value

string

mixed castShort()

Casts the value to a short.

Return Value

mixed

setProperty(string $key, mixed $property)

Defines properties that can be internally used by the caster.

Parameters

string $key
mixed $property

setValue(mixed $value)

Sets the internal value to work with.

Parameters

mixed $value