for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace frictionlessdata\tableschema\DataSources;
use frictionlessdata\tableschema\Exceptions\DataSourceException;
/**
* the data source parameter provided to the constructor should be an array of values
* those values are then returned on each iteration
*/
class NativeDataSource extends BaseDataSource
{
* @return array
* @throws DataSourceException
public function getNextLine()
return $this->dataSource[$this->curRowNum++];
}
* @return bool
public function isEof()
return ($this->curRowNum >= count($this->dataSource));
protected $curRowNum = 0;