Type
FinalYes
Table of Contents
Methods
- bool() : ScalarCaster
- collection() : Caster
- float() : ScalarCaster
- int() : ScalarCaster
- makeCasterByPropertyType() : Caster|null
- makeCollectionCasterFromAttributes() : Caster|null
- object() : ObjectCaster
- string() : ScalarCaster
- validateCollectionByAttributes() : void
Methods
bool()
public
static bool() : ScalarCaster
Return values
ScalarCastercollection()
public
static collection(string|Caster $type) : Caster
Parameters
- $type : string|Caster
Return values
Casterfloat()
public
static float() : ScalarCaster
Return values
ScalarCasterint()
public
static int() : ScalarCaster
Return values
ScalarCastermakeCasterByPropertyType()
public
static makeCasterByPropertyType(ReflectionType $type) : Caster|null
Parameters
- $type : ReflectionType
Return values
Caster|nullmakeCollectionCasterFromAttributes()
public
static makeCollectionCasterFromAttributes(ReflectionAttribute $attribute[, mixed $isNullable = false ]) : Caster|null
Parameters
- $attribute : ReflectionAttribute
- $isNullable : mixed = false
Return values
Caster|nullobject()
public
static object(string $type) : ObjectCaster
Parameters
- $type : string
Return values
ObjectCasterstring()
public
static string() : ScalarCaster
Return values
ScalarCastervalidateCollectionByAttributes()
public
static validateCollectionByAttributes(array<string|int, mixed>|null $collection, ReflectionAttribute $attribute) : void
Parameters
- $collection : array<string|int, mixed>|null
- $attribute : ReflectionAttribute