PHP Class Common\Doctrine\Type\EnumBoolType

Deprecation:
Inheritance: extends Doctrine\DBAL\Types\Type
Mostra file Open project: forkcms/forkcms

Public Methods

Method Description
convertToDatabaseValue ( boolean $bool, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
convertToPHPValue ( string $enumBool, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : boolean
getName ( ) : string
getSQLDeclaration ( array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string

Method Details

convertToDatabaseValue() public method

public convertToDatabaseValue ( boolean $bool, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
$bool boolean
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return string

convertToPHPValue() public method

public convertToPHPValue ( string $enumBool, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : boolean
$enumBool string
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return boolean

getName() public method

public getName ( ) : string
return string

getSQLDeclaration() public method

public getSQLDeclaration ( array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
$fieldDeclaration array
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return string