1 | <?php |
||
22 | class LocalFile extends FileNode implements LocalFileNodeInterface, NodeStreamInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $compression; |
||
28 | |||
29 | /** |
||
30 | * @var string|null |
||
31 | */ |
||
32 | protected $encoding; |
||
33 | |||
34 | /** |
||
35 | * @param string $path |
||
36 | */ |
||
37 | public function __construct($path) |
||
44 | 108 | ||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function getContents() |
||
63 | 15 | ||
64 | /** |
||
65 | * Get a stream for the given node |
||
66 | * |
||
67 | * @param string $mode |
||
68 | * |
||
69 | 20 | * @return StreamInterface |
|
70 | */ |
||
71 | 20 | public function getStream($mode = 'c+') |
|
75 | } |
||
76 |