PhpStreamWrapper
in package
FinalYes
StreamWrapper for php protocol
This class is used for mocking php://stdin
.
See https://www.php.net/manual/en/class.streamwrapper.php
Table of Contents
Properties
Methods
- register() : mixed
- restore() : mixed
- setContent() : mixed
- stream_eof() : bool
- stream_open() : bool
- stream_read() : false|string
- stream_stat() : array<string|int, mixed>|false
Properties
$context
public
resource|null
$context
$content
private
static string
$content
= ''
$position
private
int
$position
= 0
Methods
register()
public
static register() : mixed
restore()
public
static restore() : mixed
setContent()
public
static setContent(string $content) : mixed
Parameters
- $content : string
stream_eof()
public
stream_eof() : bool
Return values
boolstream_open()
public
stream_open() : bool
Return values
boolstream_read()
public
stream_read(int $count) : false|string
Parameters
- $count : int
Return values
false|stringstream_stat()
public
stream_stat() : array<string|int, mixed>|false