| 1 | <?php |
||
| 18 | abstract class FileExtractorAbstract extends ExtractorAbstract |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $srcFile; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var resource |
||
| 27 | */ |
||
| 28 | protected $handle; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param mixed|resource|string $input |
||
| 32 | * |
||
| 33 | * @throws YaEtlException |
||
| 34 | */ |
||
| 35 | public function __construct($input) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * make sure we do not hold un-necessary handles |
||
| 50 | */ |
||
| 51 | public function __destruct() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param mixed $param |
||
| 58 | * |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | public function extract($param = null) |
||
| 73 | |||
| 74 | /** |
||
| 75 | * release handle |
||
| 76 | * |
||
| 77 | * @return $this |
||
| 78 | */ |
||
| 79 | public function releaseHandle() |
||
| 89 | } |
||
| 90 |