src/Entities.php
public function sync($modifiedTime = null, $moduleName = null, $syncType = null)
    {
        $modifiedTime = (empty($modifiedTime))
            ? strtotime('today midnight')
            : intval($modifiedTime);

        $requestData = [
            'modifiedTime' => $modifiedTime
        ];

        if (!empty($moduleName)) {
            $requestData[ 'elementType' ] = $moduleName;
        }

        if ($syncType) {
            $requestData[ 'syncType' ] = $syncType;
        }

        return $this->wsClient->invokeOperation('sync', $requestData, 'GET');
    }
public function sync($modifiedTime = null, $moduleName = null, $syncType = null)
    {
        $modifiedTime = (empty($modifiedTime))
            ? strtotime('today midnight')
            : intval($modifiedTime);

        $requestData = [
            'modifiedTime' => $modifiedTime
        ];

        if (!empty($moduleName)) {
            $requestData[ 'elementType' ] = $moduleName;
        }

        if ($syncType) {
            $requestData[ 'syncType' ] = $syncType;
        }

        return $this->wsClient->invokeOperation('sync', $requestData, 'GET');
    }
public function sync ( $ modifiedTime = null , $ moduleName = null , $ syncType = null ) { $ modifiedTime = ( empty ( $ modifiedTime ) ) ? strtotime ( 'today midnight' ) : intval ( $ modifiedTime ) ; $ requestData = [ 'modifiedTime' => $ modifiedTime ] ; if ( ! empty ( $ moduleName ) ) { $ requestData [ 'elementType' ] = $ moduleName ; } if ( $ syncType ) { $ requestData [ 'syncType' ] = $ syncType ; } return $ this -> wsClient -> invokeOperation ( 'sync' , $ requestData , 'GET' ) ; }
Sync will return a sync result object containing details of changes after modifiedTime
@param  integer [$modifiedTime = null]    The date of the first change
@param  string [$moduleName = null]   The name of the module / entity type
@param  string [$syncType = null]   Sync type determines the scope of the query
@return array  Sync result object
Sync will return a sync result object containing details of changes after modifiedTime