1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Adsense;
19
20class ReportResult extends \Google\Collection
21{
22  protected $collection_key = 'warnings';
23  protected $averagesType = Row::class;
24  protected $averagesDataType = '';
25  protected $endDateType = Date::class;
26  protected $endDateDataType = '';
27  protected $headersType = Header::class;
28  protected $headersDataType = 'array';
29  protected $rowsType = Row::class;
30  protected $rowsDataType = 'array';
31  protected $startDateType = Date::class;
32  protected $startDateDataType = '';
33  /**
34   * @var string
35   */
36  public $totalMatchedRows;
37  protected $totalsType = Row::class;
38  protected $totalsDataType = '';
39  /**
40   * @var string[]
41   */
42  public $warnings;
43
44  /**
45   * @param Row
46   */
47  public function setAverages(Row $averages)
48  {
49    $this->averages = $averages;
50  }
51  /**
52   * @return Row
53   */
54  public function getAverages()
55  {
56    return $this->averages;
57  }
58  /**
59   * @param Date
60   */
61  public function setEndDate(Date $endDate)
62  {
63    $this->endDate = $endDate;
64  }
65  /**
66   * @return Date
67   */
68  public function getEndDate()
69  {
70    return $this->endDate;
71  }
72  /**
73   * @param Header[]
74   */
75  public function setHeaders($headers)
76  {
77    $this->headers = $headers;
78  }
79  /**
80   * @return Header[]
81   */
82  public function getHeaders()
83  {
84    return $this->headers;
85  }
86  /**
87   * @param Row[]
88   */
89  public function setRows($rows)
90  {
91    $this->rows = $rows;
92  }
93  /**
94   * @return Row[]
95   */
96  public function getRows()
97  {
98    return $this->rows;
99  }
100  /**
101   * @param Date
102   */
103  public function setStartDate(Date $startDate)
104  {
105    $this->startDate = $startDate;
106  }
107  /**
108   * @return Date
109   */
110  public function getStartDate()
111  {
112    return $this->startDate;
113  }
114  /**
115   * @param string
116   */
117  public function setTotalMatchedRows($totalMatchedRows)
118  {
119    $this->totalMatchedRows = $totalMatchedRows;
120  }
121  /**
122   * @return string
123   */
124  public function getTotalMatchedRows()
125  {
126    return $this->totalMatchedRows;
127  }
128  /**
129   * @param Row
130   */
131  public function setTotals(Row $totals)
132  {
133    $this->totals = $totals;
134  }
135  /**
136   * @return Row
137   */
138  public function getTotals()
139  {
140    return $this->totals;
141  }
142  /**
143   * @param string[]
144   */
145  public function setWarnings($warnings)
146  {
147    $this->warnings = $warnings;
148  }
149  /**
150   * @return string[]
151   */
152  public function getWarnings()
153  {
154    return $this->warnings;
155  }
156}
157
158// Adding a class alias for backwards compatibility with the previous class name.
159class_alias(ReportResult::class, 'Google_Service_Adsense_ReportResult');
160