PHP Class Camspiers\StatisticalClassifier\DataSource\CSV

Author: Cam Spiers ([email protected])
Inheritance: extends DataArray
Datei anzeigen Open project: camspiers/statistical-classifier

Protected Properties

Property Type Description
$options array Stores the configuration options

Public Methods

Method Description
__construct ( array $options = [] ) Creates the object from an array of options
read ( )
write ( )

Protected Methods

Method Description
checkColumns ( $columns ) : array
readColumns ( $handle ) : array
readLine ( $handle ) : array
setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver ) Sets the configuration for the options resolver

Method Details

__construct() public method

Creates the object from an array of options
public __construct ( array $options = [] )
$options array

checkColumns() protected method

protected checkColumns ( $columns ) : array
$columns
return array

read() public method

public read ( )

readColumns() protected method

protected readColumns ( $handle ) : array
$handle
return array

readLine() protected method

protected readLine ( $handle ) : array
$handle
return array

setDefaultOptions() protected method

Sets the configuration for the options resolver
protected setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolverInterface

write() public method

public write ( )

Property Details

$options protected_oe property

Stores the configuration options
protected array $options
return array