Initial unit tests, code cleanup
This commit is contained in:
@ -8,6 +8,8 @@ class CsvReader implements ReaderInterface
|
||||
{
|
||||
private array $files = [];
|
||||
|
||||
private array $options = [];
|
||||
|
||||
private int $currentFile = 0;
|
||||
|
||||
private ?int $loadedFile = null;
|
||||
@ -21,6 +23,7 @@ class CsvReader implements ReaderInterface
|
||||
public function __construct(string $filename, array $options)
|
||||
{
|
||||
$this->files = glob($filename);
|
||||
$this->options = $options;
|
||||
}
|
||||
|
||||
private function checkLoadedSlice()
|
||||
|
@ -8,6 +8,8 @@ class JsonReader implements ReaderInterface
|
||||
{
|
||||
private array $files = [];
|
||||
|
||||
private array $options = [];
|
||||
|
||||
private int $currentFile = 0;
|
||||
|
||||
private ?int $loadedFile = null;
|
||||
@ -21,6 +23,7 @@ class JsonReader implements ReaderInterface
|
||||
public function __construct(string $filename, array $options)
|
||||
{
|
||||
$this->files = glob($filename);
|
||||
$this->options = $options;
|
||||
}
|
||||
|
||||
private function checkLoadedSlice()
|
||||
|
Reference in New Issue
Block a user