Menu

## Cast

Cast.php : 24

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.php : 35

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.

##### Tags

template

  T

##### Return values

T

## Search results