1 | <?php |
||
18 | final class TemporaryFile extends TemporaryNode implements FileSystemNode |
||
19 | { |
||
20 | |||
21 | private $file; |
||
22 | |||
23 | public function __construct($path, $mode = FileSystemPermission::NORMAL) |
||
29 | |||
30 | public function open() |
||
34 | |||
35 | public function close() |
||
39 | |||
40 | /** |
||
41 | * Write a text |
||
42 | * |
||
43 | * @param string $content |
||
44 | * @return int|null |
||
45 | */ |
||
46 | public function write($content) |
||
53 | |||
54 | /** |
||
55 | * Write a text with newline character |
||
56 | * |
||
57 | * @param string $content |
||
58 | * @return int|null |
||
59 | */ |
||
60 | public function writeln($content) |
||
67 | |||
68 | protected function removeNode() |
||
73 | |||
74 | private function openForWrite() |
||
82 | |||
83 | private function isOpened() |
||
87 | |||
88 | } |
||
89 |