behaviors\AttributeTypecastBehavior typecastValue()

typecastValue() protected method

Casts the given value to the specified type.

protected mixed typecastValue ( $value, $type )
$value mixed

Value to be type-casted.

$type string|callable

Type name or typecast callable.

return mixed

Typecast result.

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.