PHP Interface Doctrine\ODM\OrientDB\Caster\CasterInterface

Datei anzeigen Open project: doctrine/orientdb-odm

Public Methods

Method Description
castBinary ( ) : string Casts the given $value to a binary.
castBoolean ( ) : boolean Casts the given $value to boolean.
castByte ( ) : mixed Casts the given $value to a byte.
castDate ( ) : DateTime Casts the given $value to a DateTime object.
castDateTime ( ) : DateTime Casts the given $value to a DateTime object.
castDouble ( ) : float Casts the given $value to a double (well.
castEmbedded ( ) : mixed Given an embedded record, it uses the mapper to hydrate it.
castEmbeddedList ( ) : Array Casts a list of embedded entities
castEmbeddedMap ( ) : Array Casts a map (key-value preserved) of embedded entities
castEmbeddedSet ( ) : Array Casts a set of embedded entities
castFloat ( ) : float Casts the value to a float.
castInBuffer ( integer $limit, string $type ) : integer Casts the current value into an integer verifying it belongs to a certain range ( -$limit < $value > + $limit ).
castInteger ( ) : integer Casts the value into an integer.
castLink ( ) : mixed | null Casts the current internal value into an hydrated object through a Doctrine\OrientDB\ODM\Mapper object, finding it by rid.
castLinklist ( ) : Array Hydrates multiple objects through a Mapper.
castLinkmap ( ) : Array Hydrates multiple objects through a Mapper.
castLinkset ( ) : Array Hydrates multiple objects through a Mapper.
castLong ( ) : mixed Casts the given $value to a long.
castShort ( ) : mixed Casts the value to a short.
castString ( ) : string Casts the value to string.
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.

Method Details

castBinary() public method

Casts the given $value to a binary.
public castBinary ( ) : string
return string

castBoolean() public method

Casts the given $value to boolean.
public castBoolean ( ) : boolean
return boolean

castByte() public method

Casts the given $value to a byte.
public castByte ( ) : mixed
return mixed

castDate() public method

Casts the given $value to a DateTime object.
public castDate ( ) : DateTime
return DateTime

castDateTime() public method

Casts the given $value to a DateTime object.
public castDateTime ( ) : DateTime
return DateTime

castDouble() public method

.. float).
public castDouble ( ) : float
return float

castEmbedded() public method

Given an embedded record, it uses the mapper to hydrate it.
public castEmbedded ( ) : mixed
return mixed

castEmbeddedList() public method

Casts a list of embedded entities
public castEmbeddedList ( ) : Array
return Array

castEmbeddedMap() public method

Casts a map (key-value preserved) of embedded entities
public castEmbeddedMap ( ) : Array
return Array

castEmbeddedSet() public method

Casts a set of embedded entities
public castEmbeddedSet ( ) : Array
return Array

castFloat() public method

Casts the value to a float.
public castFloat ( ) : float
return float

castInBuffer() public method

Casts the current value into an integer verifying it belongs to a certain range ( -$limit < $value > + $limit ).
public castInBuffer ( integer $limit, string $type ) : integer
$limit integer
$type string
return integer

castInteger() public method

Casts the value into an integer.
public castInteger ( ) : integer
return integer

castLinkmap() public method

Hydrates multiple objects through a Mapper.
public castLinkmap ( ) : Array
return Array

castLinkset() public method

Hydrates multiple objects through a Mapper.
public castLinkset ( ) : Array
return Array

castLong() public method

Casts the given $value to a long.
public castLong ( ) : mixed
return mixed

castShort() public method

Casts the value to a short.
public castShort ( ) : mixed
return mixed

castString() public method

Casts the value to string.
public castString ( ) : string
return string

setProperty() public method

Defines properties that can be internally used by the caster.
public setProperty ( string $key, mixed $property )
$key string
$property mixed

setValue() public method

Sets the internal value to work with.
public setValue ( mixed $value )
$value mixed