| 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 | 2 | public function __construct()  | 
            |
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @param $string  | 
            ||
| 37 | * @return bool  | 
            ||
| 38 | */  | 
            ||
| 39 | 2 | public function fwrite($string)  | 
            |
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * @return bool  | 
            ||
| 46 | */  | 
            ||
| 47 | 1 | public function rewind()  | 
            |
| 51 | |||
| 52 | /**  | 
            ||
| 53 | * Close and delete the file.  | 
            ||
| 54 | */  | 
            ||
| 55 | 2 | public function __destruct()  | 
            |
| 60 | |||
| 61 | /**  | 
            ||
| 62 | * @return string  | 
            ||
| 63 | */  | 
            ||
| 64 | 1 | public function getFilePath()  | 
            |
| 68 | }  | 
            ||
| 69 |