Componere\castCasting 説明object Componere\cast(string
$type , object $object )パラメータ
戻り値
An object of type Type, cast from エラー / 例外警告
Shall throw InvalidArgumentException if the type of 警告
Shall throw InvalidArgumentException if Type is an interface 警告
Shall throw InvalidArgumentException if Type is a trait 警告
Shall throw InvalidArgumentException if Type is an abstract 警告
Shall throw InvalidArgumentException if Type is not compatible with the type of |