DsCaster
in package
Casts Ds extension classes to array representation.
Tags
Table of Contents
- castCollection() : array<string|int, mixed>
- castMap() : array<string|int, mixed>
- castPair() : array<string|int, mixed>
- castPairStub() : array<string|int, mixed>
Methods
castCollection()
public
static castCollection(Collection $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : array<string|int, mixed>
Parameters
- $c : Collection
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
array<string|int, mixed> —castMap()
public
static castMap(Map $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : array<string|int, mixed>
Parameters
- $c : Map
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
array<string|int, mixed> —castPair()
public
static castPair(Pair $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : array<string|int, mixed>
Parameters
- $c : Pair
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
array<string|int, mixed> —castPairStub()
public
static castPairStub(DsPairStub $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : array<string|int, mixed>
Parameters
- $c : DsPairStub
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool