PHP Class Kraken\Stream\Stream

Inheritance: extends StreamSeeker, implements StreamInterface
Show file Open project: kraken-php/framework Class Usage Examples

Protected Properties

Property Type Description
$bufferSize integer
$readable boolean
$writable boolean

Public Methods

Method Description
__construct ( resource $resource, boolean $autoClose = true )
__destruct ( )
close ( )
getBufferSize ( )
isReadable ( )
isWritable ( )
read ( $length = null )
setBufferSize ( $bufferSize )
write ( $text )

Method Details

__construct() public method

public __construct ( resource $resource, boolean $autoClose = true )
$resource resource
$autoClose boolean

__destruct() public method

public __destruct ( )

close() public method

public close ( )

getBufferSize() public method

public getBufferSize ( )

isReadable() public method

public isReadable ( )

isWritable() public method

public isWritable ( )

read() public method

public read ( $length = null )

setBufferSize() public method

public setBufferSize ( $bufferSize )

write() public method

public write ( $text )

Property Details

$bufferSize protected property

protected int $bufferSize
return integer

$readable protected property

protected bool $readable
return boolean

$writable protected property

protected bool $writable
return boolean