Flow PHP

Sample

Read onlyYes
FinalYes

What one sniff of one unit produced: the fold, the bytes it read and whether it reached the unit's end.

Properties

$bytes  : int
$columns  : SniffedColumns
$complete  : bool

Methods

__construct()  : mixed
fromArray()  : self
merge()  : self
The sample of a unit sniffed in parts, in part order: the folds merged, the bytes summed, complete only when every part was.
normalize()  : array{columns: array{columns: list}>, rows: int}, bytes: int, complete: bool}

Properties

Methods

__construct()

public __construct(SniffedColumns $columns, int<0, max> $bytes, bool $complete) : mixed
Parameters
$columns : SniffedColumns
$bytes : int<0, max>

bytes the sniffed rows took as read, line endings included; 0 when unknown or in memory

$complete : bool

every row of the unit was observed

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>

the shape of normalize()

Return values
self

merge()

The sample of a unit sniffed in parts, in part order: the folds merged, the bytes summed, complete only when every part was.

public merge(self $other) : self
Parameters
$other : self
Return values
self

normalize()

public normalize() : array{columns: array{columns: list}>, rows: int}, bytes: int, complete: bool}
Return values
array{columns: array{columns: list}>, rows: int}, bytes: int, complete: bool}
On this page

Search results