final class TypeConverter

Constants

private Binary

private Boolean

private Date

private DateTime

private Decimal

private Float

private Integer

private Interval

private Text

private Time

private Patterns

Properties

$convertBoolean
$convertDateTime
$convertDecimal
$newDateTime

Methods

mixed
convertToPhp(mixed $value, array $meta)

No description

int|float|string
toInt(int|float|string $value)

No description

float
toFloat(float|string $value)

No description

bool
toBool(bool|int|string $value)

No description

toDateTime(string $value)

No description

toTime(string $value)

No description

toInterval(string $value)

No description

Details

at line 64
mixed convertToPhp(mixed $value, array $meta)

No description

Parameters

mixed $value
array $meta

Return Value

mixed

at line 81
int|float|string toInt(int|float|string $value)

No description

Parameters

int|float|string $value

Return Value

int|float|string

at line 87
float toFloat(float|string $value)

No description

Parameters

float|string $value

Return Value

float

at line 93
bool toBool(bool|int|string $value)

No description

Parameters

bool|int|string $value

Return Value

bool

at line 99
DateTimeInterface toDateTime(string $value)

No description

Parameters

string $value

Return Value

DateTimeInterface

at line 105
DateTimeInterface toTime(string $value)

No description

Parameters

string $value

Return Value

DateTimeInterface

at line 111
DateInterval toInterval(string $value)

No description

Parameters

string $value

Return Value

DateInterval