Lazily reads or writes to a file that is opened only after an IO operation
take place on the stream.
Cloneable
Instantiable
-
Implements
Psr\Http\Message\StreamInterface Stringable - Traits
Methods |
public
__call
(
$method
,
array
$args
) Allow decorators to implement custom methods
|
public
__construct
(
$filename
,
$mode
) |
public
__get
(
$name
) Magic method used to create a new stream if streams are not added in
|
public __toString () : string |
public close () |
public detach () |
public eof () |
public getContents () |
public getMetadata ( $key = NULL ) |
public getSize () |
public isReadable () |
public isSeekable () |
public isWritable () |
public read ( $length ) |
public rewind () |
public seek ( $offset , $whence = 0 ) |
public tell () |
public write ( $string ) |
Methods |
protected
createStream
() Creates the underlying stream lazily when required.
|
Properties |
private
$filename
|
private
$mode
|