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 BasicChartSeries extends \Google\Collection
21{
22  protected $collection_key = 'styleOverrides';
23  protected $colorType = Color::class;
24  protected $colorDataType = '';
25  protected $colorStyleType = ColorStyle::class;
26  protected $colorStyleDataType = '';
27  protected $dataLabelType = DataLabel::class;
28  protected $dataLabelDataType = '';
29  protected $lineStyleType = LineStyle::class;
30  protected $lineStyleDataType = '';
31  protected $pointStyleType = PointStyle::class;
32  protected $pointStyleDataType = '';
33  protected $seriesType = ChartData::class;
34  protected $seriesDataType = '';
35  protected $styleOverridesType = BasicSeriesDataPointStyleOverride::class;
36  protected $styleOverridesDataType = 'array';
37  /**
38   * @var string
39   */
40  public $targetAxis;
41  /**
42   * @var string
43   */
44  public $type;
45
46  /**
47   * @param Color
48   */
49  public function setColor(Color $color)
50  {
51    $this->color = $color;
52  }
53  /**
54   * @return Color
55   */
56  public function getColor()
57  {
58    return $this->color;
59  }
60  /**
61   * @param ColorStyle
62   */
63  public function setColorStyle(ColorStyle $colorStyle)
64  {
65    $this->colorStyle = $colorStyle;
66  }
67  /**
68   * @return ColorStyle
69   */
70  public function getColorStyle()
71  {
72    return $this->colorStyle;
73  }
74  /**
75   * @param DataLabel
76   */
77  public function setDataLabel(DataLabel $dataLabel)
78  {
79    $this->dataLabel = $dataLabel;
80  }
81  /**
82   * @return DataLabel
83   */
84  public function getDataLabel()
85  {
86    return $this->dataLabel;
87  }
88  /**
89   * @param LineStyle
90   */
91  public function setLineStyle(LineStyle $lineStyle)
92  {
93    $this->lineStyle = $lineStyle;
94  }
95  /**
96   * @return LineStyle
97   */
98  public function getLineStyle()
99  {
100    return $this->lineStyle;
101  }
102  /**
103   * @param PointStyle
104   */
105  public function setPointStyle(PointStyle $pointStyle)
106  {
107    $this->pointStyle = $pointStyle;
108  }
109  /**
110   * @return PointStyle
111   */
112  public function getPointStyle()
113  {
114    return $this->pointStyle;
115  }
116  /**
117   * @param ChartData
118   */
119  public function setSeries(ChartData $series)
120  {
121    $this->series = $series;
122  }
123  /**
124   * @return ChartData
125   */
126  public function getSeries()
127  {
128    return $this->series;
129  }
130  /**
131   * @param BasicSeriesDataPointStyleOverride[]
132   */
133  public function setStyleOverrides($styleOverrides)
134  {
135    $this->styleOverrides = $styleOverrides;
136  }
137  /**
138   * @return BasicSeriesDataPointStyleOverride[]
139   */
140  public function getStyleOverrides()
141  {
142    return $this->styleOverrides;
143  }
144  /**
145   * @param string
146   */
147  public function setTargetAxis($targetAxis)
148  {
149    $this->targetAxis = $targetAxis;
150  }
151  /**
152   * @return string
153   */
154  public function getTargetAxis()
155  {
156    return $this->targetAxis;
157  }
158  /**
159   * @param string
160   */
161  public function setType($type)
162  {
163    $this->type = $type;
164  }
165  /**
166   * @return string
167   */
168  public function getType()
169  {
170    return $this->type;
171  }
172}
173
174// Adding a class alias for backwards compatibility with the previous class name.
175class_alias(BasicChartSeries::class, 'Google_Service_Sheets_BasicChartSeries');
176