DateTimeType
extends VarDateTimeType
in package
implements
CarbonDoctrineType
Uses
CarbonTypeConverter
Table of Contents
Interfaces
Properties
- $external : bool
- This property differentiates types installed by carbonphp/carbon-doctrine-types from the ones embedded previously in nesbot/carbon source directly.
Methods
- convertToDatabaseValue() : string|null
- convertToPHPValue() : Carbon|null
- getSQLDeclaration() : string
- getCarbonClassName() : T>
- doConvertToPHPValue() : mixed
- getMaximumPrecision() : int
Properties
$external
This property differentiates types installed by carbonphp/carbon-doctrine-types from the ones embedded previously in nesbot/carbon source directly.
public
bool
$external
= true
Tags
Methods
convertToDatabaseValue()
public
convertToDatabaseValue(mixed $value, AbstractPlatform $platform) : string|null
Parameters
- $value : mixed
- $platform : AbstractPlatform
Tags
Return values
string|nullconvertToPHPValue()
public
convertToPHPValue(mixed $value, AbstractPlatform $platform) : Carbon|null
Parameters
- $value : mixed
- $platform : AbstractPlatform
Tags
Return values
Carbon|nullgetSQLDeclaration()
public
getSQLDeclaration(array<string|int, mixed> $fieldDeclaration, AbstractPlatform $platform) : string
Parameters
- $fieldDeclaration : array<string|int, mixed>
- $platform : AbstractPlatform
Return values
stringgetCarbonClassName()
protected
getCarbonClassName() : T>
Return values
T>doConvertToPHPValue()
private
doConvertToPHPValue(mixed $value) : mixed
Parameters
- $value : mixed
getMaximumPrecision()
private
getMaximumPrecision(AbstractPlatform $platform) : int
Parameters
- $platform : AbstractPlatform