PHP Class Rx\Observer\DoObserver

Inheritance: implements Rx\ObserverInterface
Show file Open project: ReactiveX/RxPHP

Public Methods

Method Description
__construct ( callable $onNext = null, callable $onError = null, callable $onCompleted = null )
onCompleted ( )
onError ( Exception $error )
onNext ( $value )

Private Methods

Method Description
getOrDefault ( callable $callback = null, $default = null )

Method Details

__construct() public method

public __construct ( callable $onNext = null, callable $onError = null, callable $onCompleted = null )
$onNext callable
$onError callable
$onCompleted callable

onCompleted() public method

public onCompleted ( )

onError() public method

public onError ( Exception $error )
$error Exception

onNext() public method

public onNext ( $value )