PHP.nl

Componere\cast

Componere\cast

Casting

object **Componere\cast** string $type object $object

typeA user defined type

objectAn object with a user defined type compatible with

An of type , cast from object``object

Waarschuwing: > Shall throw if the type of is or is derived from an internal class InvalidArgumentException``object

Waarschuwing: > Shall throw if is an interface InvalidArgumentException

Waarschuwing: > Shall throw if is a trait InvalidArgumentException

Waarschuwing: > Shall throw if is an abstract InvalidArgumentException

Waarschuwing: > Shall throw if is not compatible with the type of InvalidArgumentException``object