Menu

## DateTimeImmutableType extends VarDateTimeImmutableType
in package
implements CarbonDoctrineType Uses CarbonTypeConverter

DateTimeImmutableType.php : 12

### 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

CarbonTypeConverter.php : 30

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()

CarbonTypeConverter.php : 65
`public convertToDatabaseValue(mixed $value, AbstractPlatform $platform) : string|null`

##### Parameters

$value : mixed
$platform : AbstractPlatform

##### Tags

SuppressWarnings

  (PHPMD.UnusedFormalParameter)

##### Return values

string|null

#### convertToPHPValue()

DateTimeImmutableType.php : 20
`public convertToPHPValue(mixed $value, AbstractPlatform $platform) : CarbonImmutable|null`

##### Parameters

$value : mixed
$platform : AbstractPlatform

##### Tags

SuppressWarnings

  (PHPMD.UnusedFormalParameter)

##### Return values

CarbonImmutable|null

#### getSQLDeclaration()

CarbonTypeConverter.php : 40
`public getSQLDeclaration(array<string|int, mixed> $fieldDeclaration, AbstractPlatform $platform) : string`

##### Parameters

$fieldDeclaration : array<string|int, mixed>
$platform : AbstractPlatform

##### Return values

string

#### getCarbonClassName()

DateTimeImmutableType.php : 28
`protected getCarbonClassName() : CarbonImmutable>`

##### Return values

CarbonImmutable>

#### doConvertToPHPValue()

CarbonTypeConverter.php : 82
`private doConvertToPHPValue(mixed $value) : mixed`

##### Parameters

$value : mixed

#### getMaximumPrecision()

CarbonTypeConverter.php : 115
`private getMaximumPrecision(AbstractPlatform $platform) : int`

##### Parameters

$platform : AbstractPlatform

##### Return values

int

## Search results