1 | <?php |
||
13 | class StreamWrapper |
||
14 | { |
||
15 | /** |
||
16 | * @var resource |
||
17 | */ |
||
18 | public $context; |
||
19 | |||
20 | /** |
||
21 | * @var StreamInterface |
||
22 | */ |
||
23 | private $stream; |
||
24 | |||
25 | /** |
||
26 | * @var string r, r+, or w |
||
27 | */ |
||
28 | private $mode; |
||
29 | |||
30 | /** |
||
31 | * Returns a resource representing the stream. |
||
32 | * |
||
33 | * @param StreamInterface $stream The stream to get a resource for |
||
34 | * |
||
35 | * @return resource |
||
36 | * @throws \InvalidArgumentException if stream is not readable or writable |
||
37 | */ |
||
38 | 4 | public static function getResource(StreamInterface $stream) |
|
55 | |||
56 | /** |
||
57 | * Registers the stream wrapper if needed |
||
58 | */ |
||
59 | 4 | public static function register() |
|
65 | |||
66 | 4 | public function stream_open($path, $mode, $options, &$opened_path) |
|
79 | |||
80 | 2 | public function stream_read(int $count) |
|
84 | |||
85 | 1 | public function stream_write($data) |
|
89 | |||
90 | 2 | public function stream_tell() |
|
94 | |||
95 | 2 | public function stream_eof() |
|
99 | |||
100 | 2 | public function stream_seek($offset, $whence) |
|
106 | |||
107 | 1 | public function stream_stat() |
|
131 | } |
||
132 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.