SplCaster
in package
Casts SPL related classes to array representation.
Tags
Table of Contents
Constants
- 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() : 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
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
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
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
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
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
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
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
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
castSplArray()
private
static castSplArray(ArrayObject|ArrayIterator $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : array<string|int, mixed>
Parameters
- $c : ArrayObject|ArrayIterator
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool