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\Sheets;
19
20class BasicChartSpec extends \Google\Collection
21{
22  protected $collection_key = 'series';
23  protected $axisType = BasicChartAxis::class;
24  protected $axisDataType = 'array';
25  /**
26   * @var string
27   */
28  public $chartType;
29  /**
30   * @var string
31   */
32  public $compareMode;
33  protected $domainsType = BasicChartDomain::class;
34  protected $domainsDataType = 'array';
35  /**
36   * @var int
37   */
38  public $headerCount;
39  /**
40   * @var bool
41   */
42  public $interpolateNulls;
43  /**
44   * @var string
45   */
46  public $legendPosition;
47  /**
48   * @var bool
49   */
50  public $lineSmoothing;
51  protected $seriesType = BasicChartSeries::class;
52  protected $seriesDataType = 'array';
53  /**
54   * @var string
55   */
56  public $stackedType;
57  /**
58   * @var bool
59   */
60  public $threeDimensional;
61  protected $totalDataLabelType = DataLabel::class;
62  protected $totalDataLabelDataType = '';
63
64  /**
65   * @param BasicChartAxis[]
66   */
67  public function setAxis($axis)
68  {
69    $this->axis = $axis;
70  }
71  /**
72   * @return BasicChartAxis[]
73   */
74  public function getAxis()
75  {
76    return $this->axis;
77  }
78  /**
79   * @param string
80   */
81  public function setChartType($chartType)
82  {
83    $this->chartType = $chartType;
84  }
85  /**
86   * @return string
87   */
88  public function getChartType()
89  {
90    return $this->chartType;
91  }
92  /**
93   * @param string
94   */
95  public function setCompareMode($compareMode)
96  {
97    $this->compareMode = $compareMode;
98  }
99  /**
100   * @return string
101   */
102  public function getCompareMode()
103  {
104    return $this->compareMode;
105  }
106  /**
107   * @param BasicChartDomain[]
108   */
109  public function setDomains($domains)
110  {
111    $this->domains = $domains;
112  }
113  /**
114   * @return BasicChartDomain[]
115   */
116  public function getDomains()
117  {
118    return $this->domains;
119  }
120  /**
121   * @param int
122   */
123  public function setHeaderCount($headerCount)
124  {
125    $this->headerCount = $headerCount;
126  }
127  /**
128   * @return int
129   */
130  public function getHeaderCount()
131  {
132    return $this->headerCount;
133  }
134  /**
135   * @param bool
136   */
137  public function setInterpolateNulls($interpolateNulls)
138  {
139    $this->interpolateNulls = $interpolateNulls;
140  }
141  /**
142   * @return bool
143   */
144  public function getInterpolateNulls()
145  {
146    return $this->interpolateNulls;
147  }
148  /**
149   * @param string
150   */
151  public function setLegendPosition($legendPosition)
152  {
153    $this->legendPosition = $legendPosition;
154  }
155  /**
156   * @return string
157   */
158  public function getLegendPosition()
159  {
160    return $this->legendPosition;
161  }
162  /**
163   * @param bool
164   */
165  public function setLineSmoothing($lineSmoothing)
166  {
167    $this->lineSmoothing = $lineSmoothing;
168  }
169  /**
170   * @return bool
171   */
172  public function getLineSmoothing()
173  {
174    return $this->lineSmoothing;
175  }
176  /**
177   * @param BasicChartSeries[]
178   */
179  public function setSeries($series)
180  {
181    $this->series = $series;
182  }
183  /**
184   * @return BasicChartSeries[]
185   */
186  public function getSeries()
187  {
188    return $this->series;
189  }
190  /**
191   * @param string
192   */
193  public function setStackedType($stackedType)
194  {
195    $this->stackedType = $stackedType;
196  }
197  /**
198   * @return string
199   */
200  public function getStackedType()
201  {
202    return $this->stackedType;
203  }
204  /**
205   * @param bool
206   */
207  public function setThreeDimensional($threeDimensional)
208  {
209    $this->threeDimensional = $threeDimensional;
210  }
211  /**
212   * @return bool
213   */
214  public function getThreeDimensional()
215  {
216    return $this->threeDimensional;
217  }
218  /**
219   * @param DataLabel
220   */
221  public function setTotalDataLabel(DataLabel $totalDataLabel)
222  {
223    $this->totalDataLabel = $totalDataLabel;
224  }
225  /**
226   * @return DataLabel
227   */
228  public function getTotalDataLabel()
229  {
230    return $this->totalDataLabel;
231  }
232}
233
234// Adding a class alias for backwards compatibility with the previous class name.
235class_alias(BasicChartSpec::class, 'Google_Service_Sheets_BasicChartSpec');
236