PHP Class Zend\Diactoros\CallbackStream

Inheritance: implements Psr\Http\Message\StreamInterface
Show file Open project: zendframework/zend-diactoros

Protected Properties

Property Type Description
$callback callable | null

Public Methods

Method Description
__construct ( callable $callback )
__toString ( )
attach ( callable $callback ) Attach a new callback to the instance.
close ( )
detach ( )
eof ( )
getContents ( )
getMetadata ( $key = null )
getSize ( )
isReadable ( )
isSeekable ( )
isWritable ( )
read ( $length )
rewind ( )
seek ( $offset, $whence = SEEK_SET )
tell ( )
write ( $string )

Method Details

__construct() public method

public __construct ( callable $callback )
$callback callable

__toString() public method

public __toString ( )

attach() public method

Attach a new callback to the instance.
public attach ( callable $callback )
$callback callable

close() public method

public close ( )

detach() public method

public detach ( )

eof() public method

public eof ( )

getContents() public method

public getContents ( )

getMetadata() public method

public getMetadata ( $key = null )

getSize() public method

public getSize ( )

isReadable() public method

public isReadable ( )

isSeekable() public method

public isSeekable ( )

isWritable() public method

public isWritable ( )

read() public method

public read ( $length )

rewind() public method

public rewind ( )

seek() public method

public seek ( $offset, $whence = SEEK_SET )

tell() public method

public tell ( )

write() public method

public write ( $string )

Property Details

$callback protected property

protected callable|null $callback
return callable | null