Doctrine


Doctrine\DBAL\Types\TimeType
/Doctrine/DBAL/Types/TimeType.php at line 31

Class TimeType

Class:TimeType - Superclass: Type
Type
⌊ TimeType

public class TimeType
extends Type

Type that maps an SQL TIME to a PHP DateTime object.

Since:
2.0
Author:
Roman Borschel

Fields inherited from Doctrine\DBAL\Types\Type
BIGINT, BOOLEAN, DATE, DATETIME, DECIMAL, INTEGER, OBJECT, SMALLINT, STRING, TARRAY, TEXT, TIME
Method Summary
mixed

convertToDatabaseValue(mixed value, AbstractPlatform platform)

{@inheritdoc}

mixed

convertToPHPValue(mixed value, AbstractPlatform platform)

{@inheritdoc}

string

getName()

Gets the name of this type.

void

getSqlDeclaration(array fieldDeclaration, AbstractPlatform platform)

{@inheritdoc}

Methods inherited from Doctrine\DBAL\Types\Type
addType, convertToDatabaseValue, convertToPHPValue, getBindingType, getDefaultLength, getName, getSqlDeclaration, getType, getTypesMap, hasType, overrideType

Method Detail

/Doctrine/DBAL/Types/TimeType.php at line 49

convertToDatabaseValue

public mixed convertToDatabaseValue(mixed value, AbstractPlatform platform)

Parameters:
value - The value to convert.
platform - The currently used database platform.
Returns:
The database representation of the value.

/Doctrine/DBAL/Types/TimeType.php at line 58

convertToPHPValue

public mixed convertToPHPValue(mixed value, AbstractPlatform platform)

Parameters:
value - The value to convert.
platform - The currently used database platform.
Returns:
The PHP representation of the value.

/Doctrine/DBAL/Types/TimeType.php at line 33

getName

public string getName()

Gets the name of this type.

Todo:
Needed?

/Doctrine/DBAL/Types/TimeType.php at line 41

getSqlDeclaration

public void getSqlDeclaration(array fieldDeclaration, AbstractPlatform platform)

Parameters:
fieldDeclaration - The field declaration.
platform - The currently used database platform.

Doctrine