Console Tool Refactoring
parent
10d7b09c5f
commit
678a2e713b
|
@ -13,8 +13,7 @@ class CsvReader
|
||||||
private readonly string $filePath
|
private readonly string $filePath
|
||||||
) {
|
) {
|
||||||
if (!file_exists($this->filePath)) {
|
if (!file_exists($this->filePath)) {
|
||||||
$handle = fopen($this->filePath, 'wb');
|
throw new RuntimeException('Input file does not exist.');
|
||||||
fclose($handle);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue