\League\CsvColumnConsistency

Validates column consistency when inserting records into a CSV document.

Summary

Methods
Properties
Constants
__construct()
getColumnCount()
__invoke()
No public properties found
No constants found
No protected methods found
$columns_count
N/A
No private methods found
No private properties found
N/A

Properties

$columns_count

$columns_count : integer

The number of column per record.

Type

integer

Methods

__construct()

__construct(\League\Csv\int  $columns_count = -1) 

New Instance.

Parameters

\League\Csv\int $columns_count

Throws

\League\Csv\OutOfRangeException

if the column count is lesser than -1

getColumnCount()

getColumnCount() 

Returns the column count.

__invoke()

__invoke(array  $record) 

Tell whether the submitted record is valid.

Parameters

array $record