FileAccess Orion

Cast

Trait Cast.

Utils to cast into an other class.

Table of Contents

cast()  : DateTimeInterface
Cast the current instance into the given class.

Methods

cast()

Cast the current instance into the given class.

public cast(string $className) : DateTimeInterface
Parameters
$className : string

The $className::instance() method will be called to cast the current object.

Return values
DateTimeInterface

Search results