Flow PHP

Caster

Read onlyYes
FinalYes

Methods

__construct()  : mixed
default()  : self
to()  : CastingContext<string|int, T>

Methods

default()

public static default([Options $options = new Options() ]) : self
Parameters
$options : Options = new Options()
Return values
self

to()

public to(Type<string|int, T$type[, null|Options $options = null ]) : CastingContext<string|int, T>
Parameters
$type : Type<string|int, T>
$options : null|Options = null
  • by passing options here you can override Caster global options
Tags
template
Return values
CastingContext<string|int, T>

        
On this page

Search results