src/Google/AdsApi/AdWords/Query/v201809/ServiceQueryBuilderDelegate.php
public static function copyFrom(
        ServiceQueryBuilderDelegate $otherInstance,
        ServiceQueryBuilder $queryBuilder
    ) {
        $copyingInstance = new self();
        $copyingInstance->startIndex = $otherInstance->startIndex;
        $copyingInstance->pageSize = $otherInstance->pageSize;
        $copyingInstance->orderByFields = $otherInstance->orderByFields;
        $copyingInstance->selectFields = $otherInstance->selectFields;

        if (isset($otherInstance->whereBuilders)) {
            $copyingInstance->whereBuilders = [];
            foreach ($otherInstance->whereBuilders as $whereBuilder) {
                $copyingInstance->whereBuilders[] =
                    ServiceQueryWhereBuilder::copyFrom(
                        $whereBuilder,
                        $queryBuilder
                    );
            }
        }
        return $copyingInstance;
    }
public static function copyFrom(
        ServiceQueryBuilderDelegate $otherInstance,
        ServiceQueryBuilder $queryBuilder
    ) {
        $copyingInstance = new self();
        $copyingInstance->startIndex = $otherInstance->startIndex;
        $copyingInstance->pageSize = $otherInstance->pageSize;
        $copyingInstance->orderByFields = $otherInstance->orderByFields;
        $copyingInstance->selectFields = $otherInstance->selectFields;

        if (isset($otherInstance->whereBuilders)) {
            $copyingInstance->whereBuilders = [];
            foreach ($otherInstance->whereBuilders as $whereBuilder) {
                $copyingInstance->whereBuilders[] =
                    ServiceQueryWhereBuilder::copyFrom(
                        $whereBuilder,
                        $queryBuilder
                    );
            }
        }
        return $copyingInstance;
    }
public static function copyFrom ( ServiceQueryBuilderDelegate $ otherInstance , ServiceQueryBuilder $ queryBuilder ) { $ copyingInstance = new self ( ) ; $ copyingInstance -> startIndex = $ otherInstance -> startIndex ; $ copyingInstance -> pageSize = $ otherInstance -> pageSize ; $ copyingInstance -> orderByFields = $ otherInstance -> orderByFields ; $ copyingInstance -> selectFields = $ otherInstance -> selectFields ; if ( isset ( $ otherInstance -> whereBuilders ) ) { $ copyingInstance -> whereBuilders = [ ] ; foreach ( $ otherInstance -> whereBuilders as $ whereBuilder ) { $ copyingInstance -> whereBuilders [ ] = ServiceQueryWhereBuilder :: copyFrom ( $ whereBuilder , $ queryBuilder ) ; } } return $ copyingInstance ; }
Creates a new query builder delegate object by copying field names,
WHERE conditions and pagination data from another query builder
delegate object.

@param ServiceQueryBuilderDelegate $otherInstance the other query
builder delegate object for copying field names, WHERE conditions
and pagination data
@param ServiceQueryBuilder $queryBuilder the query builder object for
continuation of building a complete AWQL string
@return ServiceQueryBuilderDelegate a new query builder delegate object
that copies from the input one
Creates a new query builder delegate object by copying field names WHERE conditions and pagination data from another query builder delegate object .