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 | 8 | public function __construct() |
|
34 | |||
35 | /** |
||
36 | * @param $string |
||
37 | */ |
||
38 | 8 | public function fwrite($string) |
|
39 | { |
||
40 | 8 | fwrite($this->filePointer, $string); |
|
41 | 8 | } |
|
42 | |||
43 | /** |
||
44 | * @return bool |
||
45 | */ |
||
46 | 2 | public function rewind() |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 2 | public function getFilePath() |
|
58 | |||
59 | /** |
||
60 | * Close file pointer and delete sheet file. |
||
61 | */ |
||
62 | 8 | public function __destruct() |
|
68 | } |
||
69 |