PHP Class Rx\Operator\ReduceOperator

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

Protected Properties

Property Type Description
$accumulator callable
$hasSeed
$seed

Public Methods

Method Description
__construct ( callable $accumulator, $seed )
__invoke ( Rx\ObservableInterface $observable, Rx\ObserverInterface $observer, Rx\SchedulerInterface $scheduler = null ) : Rx\DisposableInterface

Method Details

__construct() public method

public __construct ( callable $accumulator, $seed )
$accumulator callable
$seed

__invoke() public method

public __invoke ( Rx\ObservableInterface $observable, Rx\ObserverInterface $observer, Rx\SchedulerInterface $scheduler = null ) : Rx\DisposableInterface
$observable Rx\ObservableInterface
$observer Rx\ObserverInterface
$scheduler Rx\SchedulerInterface
return Rx\DisposableInterface

Property Details

$accumulator protected property

protected callable $accumulator
return callable

$hasSeed protected property

protected $hasSeed

$seed protected property

protected $seed