| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function __construct($input) |
||
| 36 | { |
||
| 37 | if (is_resource($input)) { |
||
| 38 | $this->handle = $input; |
||
| 39 | } elseif (is_file($input)) { |
||
| 40 | $this->srcFile = $input; |
||
| 41 | } else { |
||
| 42 | throw new YaEtlException('Input is either not a resource or not a file'); |
||
| 43 | } |
||
| 44 | |||
| 45 | parent::__construct(); |
||
| 46 | } |
||
| 47 | |||
| 90 |