An observable file stream object.

package filicious-core
author Christian Schiffler
author Tristan Lins
author Oliver Hoff

 Methods

Add an observer to the stream.

addObserver(\Filicious\Stream\StreamObserver $observer) 

Parameters

Remove an observer from the stream.

removeObserver(\Filicious\Stream\StreamObserver $observer) 

Parameters

Notify observers that the stream is closed.

notifyClosed() 

Notify observers that the stream is flushed.

notifyFlushed() 

Notify observers that the stream is locked.

notifyLocked(\Filicious\Stream\mode $operation) 

Parameters

Notify observers that the stream is opened.

notifyOpened(\Filicious\Stream\StreamMode $mode) 

Parameters

Notify observers that the stream position changed.

notifyPositionChanged($offset, $whence) 

Parameters

$offset

$whence

Notify observers that the stream is read.

notifyRead($count, $data) 

Parameters

$count

$data

Notify observers that the stream is truncated.

notifyTruncated($size) 

Parameters

$size

Notify observers that the stream is written.

notifyWritten($data) 

Parameters

$data

 Properties

 

$observers

$observers