Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Mongolid
DataMapper
SchemaMapper
cast
Mongolid\DataMapper\SchemaMapper::cast PHP Метод
Документация по классу SchemaMapper
Показать файл
Открыть проект
cast()
защищенный
Метод
Uses PHP's settype to cast a value to a type.
См. также:
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.
Результат
mixed
protected function cast($value, string $type) { settype($value, $type); return $value; }
SchemaMapper
__construct
cast
clearDynamic
map
mapToSchema
parseField
parseToArray