TypeConverter
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
at line 81
int|float|string
toInt(int|float|string $value)
No description
at line 87
float
toFloat(float|string $value)
No description
at line 93
bool
toBool(bool|int|string $value)
No description
at line 99
DateTimeInterface
toDateTime(string $value)
No description
at line 105
DateTimeInterface
toTime(string $value)
No description
at line 111
DateInterval
toInterval(string $value)
No description