ColumnConsistency
in package
Validates column consistency when inserting records into a CSV document.
Table of Contents
Properties
- $columns_count : int
Methods
- __construct() : mixed
- __invoke() : bool
- Tells whether the submitted record is valid.
- getColumnCount() : int
- Returns the column count.
Properties
$columns_count
protected
int
$columns_count
= -1
Methods
__construct()
public
__construct([int $columns_count = -1 ]) : mixed
Parameters
- $columns_count : int = -1
Tags
__invoke()
Tells whether the submitted record is valid.
public
__invoke(array<string|int, mixed> $record) : bool
Parameters
- $record : array<string|int, mixed>
Return values
boolgetColumnCount()
Returns the column count.
public
getColumnCount() : int