Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function __construct($dataSource, $dataSourceOptions = null) |
||
20 | { |
||
21 | parent::__construct($dataSource, $dataSourceOptions); |
||
22 | try { |
||
23 | $this->fopenResource = fopen($this->dataSource, 'r'); |
||
24 | } catch (\Exception $e) { |
||
25 | throw new DataStreamOpenException('Failed to open data source '.json_encode($this->dataSource).': '.json_encode($e->getMessage())); |
||
26 | } |
||
27 | } |
||
28 | |||
66 |