private function isFullSyncRequired($forceFullSync, PollTask $lastSuccessfulSyncTask = null, $currentRootDseDnsHostName, $currentInvocationId)
    {
        if ($forceFullSync) {
            return true;
        }

        if (!$lastSuccessfulSyncTask) {
            return true;
        }

        if ($lastSuccessfulSyncTask->getRootDseDnsHostName() != $currentRootDseDnsHostName) {
            return true;
        }

        if ($lastSuccessfulSyncTask->getInvocationId() != $currentInvocationId) {
            return true;
        }

        return false;
    }
private function isFullSyncRequired($forceFullSync, PollTask $lastSuccessfulSyncTask = null, $currentRootDseDnsHostName, $currentInvocationId)
    {
        if ($forceFullSync) {
            return true;
        }

        if (!$lastSuccessfulSyncTask) {
            return true;
        }

        if ($lastSuccessfulSyncTask->getRootDseDnsHostName() != $currentRootDseDnsHostName) {
            return true;
        }

        if ($lastSuccessfulSyncTask->getInvocationId() != $currentInvocationId) {
            return true;
        }

        return false;
    }
private function isFullSyncRequired ( $ forceFullSync , PollTask $ lastSuccessfulSyncTask = null , $ currentRootDseDnsHostName , $ currentInvocationId ) { if ( $ forceFullSync ) { return true ; } if ( ! $ lastSuccessfulSyncTask ) { return true ; } if ( $ lastSuccessfulSyncTask -> getRootDseDnsHostName ( ) != $ currentRootDseDnsHostName ) { return true ; } if ( $ lastSuccessfulSyncTask -> getInvocationId ( ) != $ currentInvocationId ) { return true ; } return false ; }
Returns true is full AD sync required and false otherwise

@param bool          $forceFullSync
@param PollTask|null $lastSuccessfulSyncTask
@param string        $currentRootDseDnsHostName
@param string        $currentInvocationId

@return bool
Returns true is full AD sync required and false otherwise