1 | <?php |
||
5 | class FileStream implements StreamInterface |
||
6 | { |
||
7 | private $file; |
||
8 | |||
9 | public function __construct(\SplFileObject $file) |
||
13 | |||
14 | public function goNext() |
||
15 | { |
||
16 | $this->file->next(); |
||
17 | } |
||
18 | |||
19 | public function isValid() |
||
20 | { |
||
21 | return $this->file->valid(); |
||
22 | } |
||
23 | |||
24 | public function getLine() |
||
28 | |||
29 | public function putLine($line) |
||
33 | } |
||
34 |