public function setSyncState($state)
    {
        switch ((int) $state) {
            case self::SYNC_STATE_MODIFIED:
            case self::SYNC_STATE_NO_CHANGE:
            case self::SYNC_STATE_REMOVED:
                // OK
                break;
            default:
                throw new \InvalidArgumentException(sprintf('Invalid sync state: %s', $state));
        }
        
        $this->syncState = (int) $state;
    }
public function setSyncState($state)
    {
        switch ((int) $state) {
            case self::SYNC_STATE_MODIFIED:
            case self::SYNC_STATE_NO_CHANGE:
            case self::SYNC_STATE_REMOVED:
                // OK
                break;
            default:
                throw new \InvalidArgumentException(sprintf('Invalid sync state: %s', $state));
        }
        
        $this->syncState = (int) $state;
    }
public function setSyncState ( $ state ) { switch ( ( int ) $ state ) { case self :: SYNC_STATE_MODIFIED : case self :: SYNC_STATE_NO_CHANGE : case self :: SYNC_STATE_REMOVED : // OK
 break ; default : throw new \ InvalidArgumentException ( sprintf ( 'Invalid sync state: %s' , $ state ) ) ; } $ this -> syncState = ( int ) $ state ; }
Set the current sync state.

@param integer $state One of the Execution::SYNC_STATE_* constants.

@throws \InvalidArgumentException When an invalid sync state value has been given.
Set the current sync state .