private function logIncrementalSync($changed, $deleted)
    {
        if ($this->logger) {
            $entriesLogReducer = function ($entry) {
                return array_intersect_key($entry, array_flip($this->incrementalAttributesToLog));
            };
            $changedToLog      = array_map($entriesLogReducer, $changed);
            $deletedToLog      = array_map($entriesLogReducer, $deleted);
            $this->logger->info(
                sprintf("Incremental changeset processed. Changed: %d, Deleted: %d.", count($changed), count($deleted)),
                ['changed' => $changedToLog, 'deleted' => $deletedToLog]
            );
        }
    }
private function logIncrementalSync($changed, $deleted)
    {
        if ($this->logger) {
            $entriesLogReducer = function ($entry) {
                return array_intersect_key($entry, array_flip($this->incrementalAttributesToLog));
            };
            $changedToLog      = array_map($entriesLogReducer, $changed);
            $deletedToLog      = array_map($entriesLogReducer, $deleted);
            $this->logger->info(
                sprintf("Incremental changeset processed. Changed: %d, Deleted: %d.", count($changed), count($deleted)),
                ['changed' => $changedToLog, 'deleted' => $deletedToLog]
            );
        }
    }
private function logIncrementalSync ( $ changed , $ deleted ) { if ( $ this -> logger ) { $ entriesLogReducer = function ( $ entry ) { return array_intersect_key ( $ entry , array_flip ( $ this -> incrementalAttributesToLog ) ) ; } ; $ changedToLog = array_map ( $ entriesLogReducer , $ changed ) ; $ deletedToLog = array_map ( $ entriesLogReducer , $ deleted ) ; $ this -> logger -> info ( sprintf ( "Incremental changeset processed. Changed: %d, Deleted: %d." , count ( $ changed ) , count ( $ deleted ) ) , [ 'changed' => $ changedToLog , 'deleted' => $ deletedToLog ] ) ; } }
Logs incremental sync if needed

@param $changed
@param $deleted
Logs incremental sync if needed