Componere\castCasting Descriptionobject Componere\cast(string
$type , object $object )Parameters
Return Values
An object of type Type, cast from Errors/ExceptionsWarning
Shall throw InvalidArgumentException if the type of Warning
Shall throw InvalidArgumentException if Type is an interface Warning
Shall throw InvalidArgumentException if Type is a trait Warning
Shall throw InvalidArgumentException if Type is an abstract Warning
Shall throw InvalidArgumentException if Type is not compatible with the type of See Also |