Reader
implements
Iterator, Countable
Table of Contents
Interfaces
- Iterator
- Countable
Properties
-
$fileDescriptor
: FileDescriptor
-
$lines
: array<string|int, mixed>
-
$newline
: string
-
$position
: int
Methods
-
__construct()
: mixed
-
count()
: int
-
current()
: array<string|int, mixed>
-
key()
: int
-
next()
: void
-
rewind()
: void
-
valid()
: bool
-
extractLines()
: array<string|int, mixed>
-
validateAndNormalizeLines()
: void
$fileDescriptor
protected
FileDescriptor
$fileDescriptor
$lines
protected
array<string|int, mixed>
$lines
= []
$newline
protected
string
$newline
$position
protected
int
$position
= 0
__construct()
public
__construct(mixed $iterable, FileDescriptor $fileDescriptor[, string $newline = "\n" ]) : mixed
Parameters
-
$iterable
: mixed
-
-
$fileDescriptor
: FileDescriptor
-
-
$newline
: string
= "\n"
-
count()
public
count() : int
current()
public
current() : array<string|int, mixed>
Return values
array<string|int, mixed>
key()
public
key() : int
next()
public
next() : void
rewind()
public
rewind() : void
valid()
public
valid() : bool
protected
extractLines(mixed $iterable) : array<string|int, mixed>
Parameters
-
$iterable
: mixed
-
Return values
array<string|int, mixed>
validateAndNormalizeLines()
protected
validateAndNormalizeLines() : void