SplCaster
in package
Casts SPL related classes to array representation.
Tags
Table of Contents
- SPL_FILE_OBJECT_FLAGS = [SplFileObject::DROP_NEW_LINE => 'DROP_NEW_LINE', SplFileObject::READ_AHEAD => 'READ_AHEAD', SplFileObject::SKIP_EMPTY => 'SKIP_EMPTY', SplFileObject::READ_CSV => 'READ_CSV']
- castArrayIterator() : mixed
- castArrayObject() : mixed
- castDoublyLinkedList() : mixed
- castFileInfo() : mixed
- castFileObject() : mixed
- castHeap() : mixed
- castObjectStorage() : mixed
- castOuterIterator() : mixed
- castWeakReference() : mixed
- castSplArray() : array<string|int, mixed>
Constants
SPL_FILE_OBJECT_FLAGS
private
mixed
SPL_FILE_OBJECT_FLAGS
= [SplFileObject::DROP_NEW_LINE => 'DROP_NEW_LINE', SplFileObject::READ_AHEAD => 'READ_AHEAD', SplFileObject::SKIP_EMPTY => 'SKIP_EMPTY', SplFileObject::READ_CSV => 'READ_CSV']
Methods
castArrayIterator()
public
static castArrayIterator(ArrayIterator $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : ArrayIterator
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castArrayObject()
public
static castArrayObject(ArrayObject $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : ArrayObject
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castDoublyLinkedList()
public
static castDoublyLinkedList(SplDoublyLinkedList $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : SplDoublyLinkedList
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castFileInfo()
public
static castFileInfo(SplFileInfo $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : SplFileInfo
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castFileObject()
public
static castFileObject(SplFileObject $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : SplFileObject
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castHeap()
public
static castHeap(Iterator $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : Iterator
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castObjectStorage()
public
static castObjectStorage(SplObjectStorage $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : SplObjectStorage
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castOuterIterator()
public
static castOuterIterator(OuterIterator $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : OuterIterator
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castWeakReference()
public
static castWeakReference(WeakReference $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : WeakReference
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castSplArray()
private
static castSplArray(mixed $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : array<string|int, mixed>
Parameters
- $c : mixed
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool