Pionia Core

DateTimeImmutableType extends VarDateTimeImmutableType
in package
implements CarbonDoctrineType Uses CarbonTypeConverter

Table of Contents

Interfaces

CarbonDoctrineType

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()  : CarbonImmutable|null
getSQLDeclaration()  : string
getCarbonClassName()  : CarbonImmutable>
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
readonly

Methods

convertToDatabaseValue()

public convertToDatabaseValue(mixed $value, AbstractPlatform $platform) : string|null
Parameters
$value : mixed
$platform : AbstractPlatform
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
string|null

convertToPHPValue()

public convertToPHPValue(mixed $value, AbstractPlatform $platform) : CarbonImmutable|null
Parameters
$value : mixed
$platform : AbstractPlatform
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
CarbonImmutable|null

getSQLDeclaration()

public getSQLDeclaration(array<string|int, mixed> $fieldDeclaration, AbstractPlatform $platform) : string
Parameters
$fieldDeclaration : array<string|int, mixed>
$platform : AbstractPlatform
Return values
string

getCarbonClassName()

protected getCarbonClassName() : CarbonImmutable>
Return values
CarbonImmutable>

doConvertToPHPValue()

private doConvertToPHPValue(mixed $value) : mixed
Parameters
$value : mixed

getMaximumPrecision()

private getMaximumPrecision(AbstractPlatform $platform) : int
Parameters
$platform : AbstractPlatform
Return values
int

        
On this page

Search results