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 WaterfallChartSeries extends \Google\Collection 21{ 22 protected $collection_key = 'customSubtotals'; 23 protected $customSubtotalsType = WaterfallChartCustomSubtotal::class; 24 protected $customSubtotalsDataType = 'array'; 25 protected $dataType = ChartData::class; 26 protected $dataDataType = ''; 27 protected $dataLabelType = DataLabel::class; 28 protected $dataLabelDataType = ''; 29 /** 30 * @var bool 31 */ 32 public $hideTrailingSubtotal; 33 protected $negativeColumnsStyleType = WaterfallChartColumnStyle::class; 34 protected $negativeColumnsStyleDataType = ''; 35 protected $positiveColumnsStyleType = WaterfallChartColumnStyle::class; 36 protected $positiveColumnsStyleDataType = ''; 37 protected $subtotalColumnsStyleType = WaterfallChartColumnStyle::class; 38 protected $subtotalColumnsStyleDataType = ''; 39 40 /** 41 * @param WaterfallChartCustomSubtotal[] 42 */ 43 public function setCustomSubtotals($customSubtotals) 44 { 45 $this->customSubtotals = $customSubtotals; 46 } 47 /** 48 * @return WaterfallChartCustomSubtotal[] 49 */ 50 public function getCustomSubtotals() 51 { 52 return $this->customSubtotals; 53 } 54 /** 55 * @param ChartData 56 */ 57 public function setData(ChartData $data) 58 { 59 $this->data = $data; 60 } 61 /** 62 * @return ChartData 63 */ 64 public function getData() 65 { 66 return $this->data; 67 } 68 /** 69 * @param DataLabel 70 */ 71 public function setDataLabel(DataLabel $dataLabel) 72 { 73 $this->dataLabel = $dataLabel; 74 } 75 /** 76 * @return DataLabel 77 */ 78 public function getDataLabel() 79 { 80 return $this->dataLabel; 81 } 82 /** 83 * @param bool 84 */ 85 public function setHideTrailingSubtotal($hideTrailingSubtotal) 86 { 87 $this->hideTrailingSubtotal = $hideTrailingSubtotal; 88 } 89 /** 90 * @return bool 91 */ 92 public function getHideTrailingSubtotal() 93 { 94 return $this->hideTrailingSubtotal; 95 } 96 /** 97 * @param WaterfallChartColumnStyle 98 */ 99 public function setNegativeColumnsStyle(WaterfallChartColumnStyle $negativeColumnsStyle) 100 { 101 $this->negativeColumnsStyle = $negativeColumnsStyle; 102 } 103 /** 104 * @return WaterfallChartColumnStyle 105 */ 106 public function getNegativeColumnsStyle() 107 { 108 return $this->negativeColumnsStyle; 109 } 110 /** 111 * @param WaterfallChartColumnStyle 112 */ 113 public function setPositiveColumnsStyle(WaterfallChartColumnStyle $positiveColumnsStyle) 114 { 115 $this->positiveColumnsStyle = $positiveColumnsStyle; 116 } 117 /** 118 * @return WaterfallChartColumnStyle 119 */ 120 public function getPositiveColumnsStyle() 121 { 122 return $this->positiveColumnsStyle; 123 } 124 /** 125 * @param WaterfallChartColumnStyle 126 */ 127 public function setSubtotalColumnsStyle(WaterfallChartColumnStyle $subtotalColumnsStyle) 128 { 129 $this->subtotalColumnsStyle = $subtotalColumnsStyle; 130 } 131 /** 132 * @return WaterfallChartColumnStyle 133 */ 134 public function getSubtotalColumnsStyle() 135 { 136 return $this->subtotalColumnsStyle; 137 } 138} 139 140// Adding a class alias for backwards compatibility with the previous class name. 141class_alias(WaterfallChartSeries::class, 'Google_Service_Sheets_WaterfallChartSeries'); 142