1 | <?php |
||
15 | abstract class NativeStream implements File { |
||
16 | /** |
||
17 | * @var resource |
||
18 | * @psalm-suppress PropertyNotSetInConstructor |
||
19 | */ |
||
20 | public $context; |
||
21 | |||
22 | /** |
||
23 | * @var NativeState |
||
24 | * @psalm-suppress PropertyNotSetInConstructor |
||
25 | */ |
||
26 | protected $state; |
||
27 | |||
28 | /** |
||
29 | * @var resource |
||
30 | * @psalm-suppress PropertyNotSetInConstructor |
||
31 | */ |
||
32 | protected $handle; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | protected $eof = false; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $url = ''; |
||
43 | |||
44 | /** |
||
45 | * Wrap a stream from libsmbclient-php into a regular php stream |
||
46 | * |
||
47 | * @param NativeState $state |
||
48 | * @param resource $smbStream |
||
49 | * @param string $mode |
||
50 | * @param string $url |
||
51 | * @param class-string<NativeStream> $class |
||
|
|||
52 | * @return resource |
||
53 | */ |
||
54 | protected static function wrapClass(NativeState $state, $smbStream, string $mode, string $url, string $class) { |
||
71 | 38 | ||
72 | 38 | public function stream_close() { |
|
79 | 78 | ||
80 | 78 | public function stream_eof() { |
|
83 | 78 | ||
84 | 78 | public function stream_flush() { |
|
87 | 38 | ||
88 | 38 | ||
89 | 38 | public function stream_open($path, $mode, $options, &$opened_path) { |
|
111 | |||
112 | 4 | public function stream_read($count) { |
|
119 | |||
120 | 2 | public function stream_seek($offset, $whence = SEEK_SET) { |
|
128 | 2 | ||
129 | 2 | /** |
|
130 | * @return array{"mtime": int, "size": int, "mode": int}|false |
||
131 | */ |
||
132 | public function stream_stat() { |
||
139 | |||
140 | public function stream_tell() { |
||
143 | |||
144 | public function stream_write($data) { |
||
147 | |||
148 | public function stream_truncate($size) { |
||
151 | |||
152 | public function stream_set_option($option, $arg1, $arg2) { |
||
155 | |||
156 | public function stream_lock($operation) { |
||
159 | } |
||
160 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.