1 | <?php |
||
8 | abstract class Base |
||
9 | { |
||
10 | protected $file; |
||
11 | protected $fields; |
||
12 | protected $filePath; |
||
13 | protected $fileHandle; |
||
14 | |||
15 | /** |
||
16 | * Base constructor. |
||
17 | * @param $filePath |
||
18 | * |
||
19 | * @throws \Dyrynda\Artisan\Exceptions\ImportFileException |
||
20 | */ |
||
21 | public function __construct($filePath) |
||
39 | |||
40 | /** |
||
41 | * Checks file for valid syntax. |
||
42 | * |
||
43 | * @throws \Dyrynda\Artisan\Exceptions\ImportFileException |
||
44 | */ |
||
45 | abstract protected function validateSyntax(); |
||
46 | } |
||
47 |