private function incrementalSync(PollTask $currentTask, $usnChangedStartFrom, $highestCommitedUSN)
    {
        list($changed, $deleted) = $this->fetcher->incrementalFetch($usnChangedStartFrom, $highestCommitedUSN, $this->detectDeleted);
        $this->synchronizer->incrementalSync($this->name, $currentTask->getId(), $changed, $deleted);
        $this->logIncrementalSync($changed, $deleted);

        return count($changed) + count($deleted);
    }
private function incrementalSync(PollTask $currentTask, $usnChangedStartFrom, $highestCommitedUSN)
    {
        list($changed, $deleted) = $this->fetcher->incrementalFetch($usnChangedStartFrom, $highestCommitedUSN, $this->detectDeleted);
        $this->synchronizer->incrementalSync($this->name, $currentTask->getId(), $changed, $deleted);
        $this->logIncrementalSync($changed, $deleted);

        return count($changed) + count($deleted);
    }
private function incrementalSync ( PollTask $ currentTask , $ usnChangedStartFrom , $ highestCommitedUSN ) { list ( $ changed , $ deleted ) = $ this -> fetcher -> incrementalFetch ( $ usnChangedStartFrom , $ highestCommitedUSN , $ this -> detectDeleted ) ; $ this -> synchronizer -> incrementalSync ( $ this -> name , $ currentTask -> getId ( ) , $ changed , $ deleted ) ; $ this -> logIncrementalSync ( $ changed , $ deleted ) ; return count ( $ changed ) + count ( $ deleted ) ; }
Performs incremental sync

@param PollTask $currentTask
@param integer  $usnChangedStartFrom min usnChanged value to restrict objects search
@param integer  $highestCommitedUSN  max usnChanged value to restrict objects search

@return int
Performs incremental sync