lib/Core/StructBuilder/CollectionStructBuilder.php
public function newCollectionUpdateStruct(?Collection $collection = null): CollectionUpdateStruct
    {
        $collectionUpdateStruct = new CollectionUpdateStruct();

        if ($collection !== null) {
            $collectionUpdateStruct->offset = $collection->getOffset();
            $collectionUpdateStruct->limit = $collection->getLimit() ?? 0;
        }

        return $collectionUpdateStruct;
    }
public function newCollectionUpdateStruct(?Collection $collection = null): CollectionUpdateStruct
    {
        $collectionUpdateStruct = new CollectionUpdateStruct();

        if ($collection !== null) {
            $collectionUpdateStruct->offset = $collection->getOffset();
            $collectionUpdateStruct->limit = $collection->getLimit() ?? 0;
        }

        return $collectionUpdateStruct;
    }
public function newCollectionUpdateStruct ( ? Collection $ collection = null ) : CollectionUpdateStruct { $ collectionUpdateStruct = new CollectionUpdateStruct ( ) ; if ( $ collection !== null ) { $ collectionUpdateStruct -> offset = $ collection -> getOffset ( ) ; $ collectionUpdateStruct -> limit = $ collection -> getLimit ( ) ?? 0 ; } return $ collectionUpdateStruct ; }
Creates a new collection update struct.

If collection is provided, initial data is copied from the collection.
Creates a new collection update struct .