Documentation

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

Methods

__construct()

public __construct([int $columns_count = -1 ]) : mixed
Parameters
$columns_count : int = -1
Tags
throws
InvalidArgument

if the column count is less than -1

__invoke()

Tells whether the submitted record is valid.

public __invoke(array<string|int, mixed> $record) : bool
Parameters
$record : array<string|int, mixed>
Return values
bool

getColumnCount()

Returns the column count.

public getColumnCount() : int
Return values
int

        
On this page

Search results