lib/Core/StructBuilder/CollectionStructBuilder.php
public function newQueryUpdateStruct(string $locale, ?Query $query = null): QueryUpdateStruct
    {
        $queryUpdateStruct = new QueryUpdateStruct();
        $queryUpdateStruct->locale = $locale;

        if (!$query instanceof Query) {
            return $queryUpdateStruct;
        }

        $queryUpdateStruct->fillParametersFromQuery($query);

        return $queryUpdateStruct;
    }
public function newQueryUpdateStruct(string $locale, ?Query $query = null): QueryUpdateStruct
    {
        $queryUpdateStruct = new QueryUpdateStruct();
        $queryUpdateStruct->locale = $locale;

        if (!$query instanceof Query) {
            return $queryUpdateStruct;
        }

        $queryUpdateStruct->fillParametersFromQuery($query);

        return $queryUpdateStruct;
    }
public function newQueryUpdateStruct ( string $ locale , ? Query $ query = null ) : QueryUpdateStruct { $ queryUpdateStruct = new QueryUpdateStruct ( ) ; $ queryUpdateStruct -> locale = $ locale ; if ( ! $ query instanceof Query ) { return $ queryUpdateStruct ; } $ queryUpdateStruct -> fillParametersFromQuery ( $ query ) ; return $ queryUpdateStruct ; }
Creates a new query update struct for provided locale.

If query is provided, initial data is copied from the query.
Creates a new query update struct for provided locale .