src/Synchronization/Query.php
public function setType(string $type = null)
    {
        $validTypes = ['all', 'Asset', 'Entry', 'Deletion', 'DeletedAsset', 'DeletedEntry'];
        if (!\in_array($type, $validTypes, true)) {
            throw new \InvalidArgumentException(\sprintf(
                'Unexpected type "%s".',
                $type
            ));
        }

        $this->type = $type;

        return $this;
    }
public function setType(string $type = null)
    {
        $validTypes = ['all', 'Asset', 'Entry', 'Deletion', 'DeletedAsset', 'DeletedEntry'];
        if (!\in_array($type, $validTypes, true)) {
            throw new \InvalidArgumentException(\sprintf(
                'Unexpected type "%s".',
                $type
            ));
        }

        $this->type = $type;

        return $this;
    }
Set the Type of event or resource to sync.

Set to null to sync everything.

Valid values for $type are:
- all
- Asset
- Entry
- Deletion
- DeletedAsset
- DeletedEntry

@param string|null $type

@throws \InvalidArgumentException when an invalid $type is set

@return $this