| 1 | <?php |
||
| 10 | class SheetFile |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var resource |
||
| 14 | */ |
||
| 15 | private $filePointer; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $filePath; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * SheetFile constructor. |
||
| 24 | * |
||
| 25 | * @throws \RuntimeException |
||
| 26 | */ |
||
| 27 | 6 | public function __construct() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param $string |
||
| 37 | */ |
||
| 38 | 6 | public function fwrite($string) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | 1 | public function rewind() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 1 | public function getFilePath() |
|
| 60 | |||
| 61 | /** |
||
| 62 | * Close file pointer and delete sheet file. |
||
| 63 | */ |
||
| 64 | 6 | public function __destruct() |
|
| 70 | } |
||
| 71 |