| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 30 | public function __construct($input)  | 
            ||
| 31 |     { | 
            ||
| 32 |         if (is_resource($input)) { | 
            ||
| 33 | $metaData = stream_get_meta_data($input);  | 
            ||
| 34 |             if (!is_writable($metaData['uri'])) { | 
            ||
| 35 |                 throw new YaEtlException('CsvLoader : destination cannot be opened in write mode'); | 
            ||
| 36 | }  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 | $this->initHandle($input, 'wb');  | 
            ||
| 40 | parent::__construct();  | 
            ||
| 41 | }  | 
            ||
| 55 |