src/Observable.php
public function shareReplay(int $bufferSize, int $windowSize = null, SchedulerInterface $scheduler = null): RefCountObservable
    {
        return $this->replay(null, $bufferSize, $windowSize, $scheduler)->refCount();
    }
public function shareReplay(int $bufferSize, int $windowSize = null, SchedulerInterface $scheduler = null): RefCountObservable
    {
        return $this->replay(null, $bufferSize, $windowSize, $scheduler)->refCount();
    }
public function shareReplay ( int $ bufferSize , int $ windowSize = null , SchedulerInterface $ scheduler = null ) : RefCountObservable { return $ this -> replay ( null , $ bufferSize , $ windowSize , $ scheduler ) -> refCount ( ) ; }
Returns an observable sequence that shares a single subscription to the underlying sequence replaying
notifications subject to a maximum time length for the replay buffer.

This operator is a specialization of  replay which creates a subscription when the number of observers goes from
zero to one, then shares that  subscription with all subsequent observers until the number of observers returns
to zero, at which point the subscription is disposed.

@param integer $bufferSize
@param integer $windowSize
@param $scheduler
@return \Rx\Observable\RefCountObservable

@demo share/shareReplay.php
@operator
@reactivex replay
Returns an observable sequence that shares a single subscription to the underlying sequence replaying notifications subject to a maximum time length for the replay buffer .