DroppingStream
in package
implements
StreamInterface
Uses
AStreamDecoratorTrait
Interfaces, Classes, Traits and Enums
- StreamInterface
- Describes a data stream.
Table of Contents
- $maxLength : mixed
- __call() : mixed
- __construct() : mixed
- __get() : mixed
- __toString() : mixed
- close() : mixed
- detach() : mixed
- eof() : bool
- getContents() : string
- getMetadata() : mixed
- getSize() : int|null
- isReadable() : bool
- isSeekable() : bool
- isWritable() : bool
- read() : string
- rewind() : mixed
- seek() : mixed
- tell() : int
- write() : int
- Write data to the stream.
- createStream() : mixed
Properties
$maxLength
private
mixed
$maxLength
Methods
__call()
public
__call(mixed $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : mixed
- $args : array<string|int, mixed>
Return values
mixed —__construct()
public
__construct(StreamInterface $stream, mixed $maxLength) : mixed
Parameters
- $stream : StreamInterface
- $maxLength : mixed
Return values
mixed —__get()
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —close()
public
close() : mixed
Return values
mixed —detach()
public
detach() : mixed
Return values
mixed —eof()
public
eof() : bool
Return values
bool —getContents()
public
getContents() : string
Return values
string —getMetadata()
public
getMetadata([mixed $key = null ]) : mixed
Parameters
- $key : mixed = null
Return values
mixed —getSize()
public
getSize() : int|null
Return values
int|null —isReadable()
public
isReadable() : bool
Return values
bool —isSeekable()
public
isSeekable() : bool
Return values
bool —isWritable()
public
isWritable() : bool
Return values
bool —read()
public
read(int $length) : string
Parameters
- $length : int
Return values
string —rewind()
public
rewind() : mixed
Return values
mixed —seek()
public
seek(int $offset[, int $whence = SEEK_SET ]) : mixed
Parameters
- $offset : int
- $whence : int = SEEK_SET
Return values
mixed —tell()
public
tell() : int
Return values
int —write()
Write data to the stream.
public
write(string $string) : int
Parameters
- $string : string
-
The string that is to be written.
Return values
int —Returns the number of bytes written to the stream.
createStream()
protected
createStream() : mixed