Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Mongolid
DataMapper
SchemaMapper
cast
Mongolid\DataMapper\SchemaMapper::cast PHP Method
SchemaMapper Class Documentation
Datei anzeigen
Open project: leroy-merlin-br/mongolid
cast()
protected
method
Uses PHP's settype to cast a value to a type.
See also:
http://php.net/manual/pt_BR/function.settype.php
protected
cast
(
mixed
$value
,
string
$type
) :
mixed
$value
mixed
Value to be casted.
$type
string
Type to which the $value should be casted to.
return
mixed
protected function cast($value, string $type) { settype($value, $type); return $value; }
SchemaMapper
__construct
cast
clearDynamic
map
mapToSchema
parseField
parseToArray