Cast
Trait Cast.
Utils to cast into an other class.
Table of Contents
Methods
- cast() : T
- Cast the current instance into the given class.
Methods
cast()
Cast the current instance into the given class.
public
cast(T> $className) : T
Parameters
- $className : T>
-
The $className::instance() method will be called to cast the current object.