Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | abstract class AbstractFile |
||
8 | { |
||
9 | /** |
||
10 | * The content of the file. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $fileContent; |
||
15 | |||
16 | /** |
||
17 | * Creates a new file. |
||
18 | * |
||
19 | * @param string $fileContent |
||
20 | * |
||
21 | * @throws \MidasSoft\DominicanBankParser\Exceptions\InvalidArgumentException |
||
22 | */ |
||
23 | 13 | public function __construct($fileContent) |
|
30 | 12 | } |
|
31 | |||
32 | /** |
||
33 | * Returns the array representation |
||
34 | * of the file. |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | abstract public function toArray(); |
||
39 | } |
||
40 |