src/Google/AdsApi/AdWords/Query/v201809/ReportQueryBuilderDelegate.php
public static function copyFrom(
        ReportQueryBuilderDelegate $otherInstance,
        ReportQueryBuilder $queryBuilder
    ) {
        $copyingInstance = new self();

        // In PHP, array assignment always performs value copying.
        $copyingInstance->selectFields = $otherInstance->selectFields;

        $copyingInstance->fromReportType = $otherInstance->fromReportType;
        $copyingInstance->duringDateRangeType =
            $otherInstance->duringDateRangeType;
        $copyingInstance->duringStartDate = $otherInstance->duringStartDate;
        $copyingInstance->duringEndDate = $otherInstance->duringEndDate;

        if (isset($otherInstance->whereBuilders)) {
            $copyingInstance->whereBuilders = [];
            foreach ($otherInstance->whereBuilders as $whereBuilder) {
                $copyingInstance->whereBuilders[] =
                    ReportQueryWhereBuilder::copyFrom(
                        $whereBuilder,
                        $queryBuilder
                    );
            }
        }
        return $copyingInstance;
    }
public static function copyFrom(
        ReportQueryBuilderDelegate $otherInstance,
        ReportQueryBuilder $queryBuilder
    ) {
        $copyingInstance = new self();

        // In PHP, array assignment always performs value copying.
        $copyingInstance->selectFields = $otherInstance->selectFields;

        $copyingInstance->fromReportType = $otherInstance->fromReportType;
        $copyingInstance->duringDateRangeType =
            $otherInstance->duringDateRangeType;
        $copyingInstance->duringStartDate = $otherInstance->duringStartDate;
        $copyingInstance->duringEndDate = $otherInstance->duringEndDate;

        if (isset($otherInstance->whereBuilders)) {
            $copyingInstance->whereBuilders = [];
            foreach ($otherInstance->whereBuilders as $whereBuilder) {
                $copyingInstance->whereBuilders[] =
                    ReportQueryWhereBuilder::copyFrom(
                        $whereBuilder,
                        $queryBuilder
                    );
            }
        }
        return $copyingInstance;
    }
public static function copyFrom ( ReportQueryBuilderDelegate $ otherInstance , ReportQueryBuilder $ queryBuilder ) { $ copyingInstance = new self ( ) ; // In PHP, array assignment always performs value copying. $ copyingInstance -> selectFields = $ otherInstance -> selectFields ; $ copyingInstance -> fromReportType = $ otherInstance -> fromReportType ; $ copyingInstance -> duringDateRangeType = $ otherInstance -> duringDateRangeType ; $ copyingInstance -> duringStartDate = $ otherInstance -> duringStartDate ; $ copyingInstance -> duringEndDate = $ otherInstance -> duringEndDate ; if ( isset ( $ otherInstance -> whereBuilders ) ) { $ copyingInstance -> whereBuilders = [ ] ; foreach ( $ otherInstance -> whereBuilders as $ whereBuilder ) { $ copyingInstance -> whereBuilders [ ] = ReportQueryWhereBuilder :: copyFrom ( $ whereBuilder , $ queryBuilder ) ; } } return $ copyingInstance ; }
Creates a new query builder delegate object by copying field names,
WHERE, FROM and DURING clauses from another query builder delegate
object.

@param ReportQueryBuilderDelegate $otherInstance the other query
builder delegate object for copying field names, FROM and DURING
clauses
@param ReportQueryBuilder $queryBuilder the query builder object for
continuation of building a complete AWQL string
@return ReportQueryBuilderDelegate a new query builder delegate object
that copies from the input one
Creates a new query builder delegate object by copying field names WHERE FROM and DURING clauses from another query builder delegate object .