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 | 108 | public function __construct($path) |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 20 | public function getContents() |
|
63 | |||
64 | /** |
||
65 | * Get a stream for the given node |
||
66 | * |
||
67 | * @param string $mode |
||
68 | * |
||
69 | * @return StreamInterface |
||
70 | */ |
||
71 | 2 | public function getStream($mode = 'c+') |
|
75 | } |
||
76 |