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 WaterfallChartSpec extends \Google\Collection 21{ 22 protected $collection_key = 'series'; 23 protected $connectorLineStyleType = LineStyle::class; 24 protected $connectorLineStyleDataType = ''; 25 protected $domainType = WaterfallChartDomain::class; 26 protected $domainDataType = ''; 27 /** 28 * @var bool 29 */ 30 public $firstValueIsTotal; 31 /** 32 * @var bool 33 */ 34 public $hideConnectorLines; 35 protected $seriesType = WaterfallChartSeries::class; 36 protected $seriesDataType = 'array'; 37 /** 38 * @var string 39 */ 40 public $stackedType; 41 protected $totalDataLabelType = DataLabel::class; 42 protected $totalDataLabelDataType = ''; 43 44 /** 45 * @param LineStyle 46 */ 47 public function setConnectorLineStyle(LineStyle $connectorLineStyle) 48 { 49 $this->connectorLineStyle = $connectorLineStyle; 50 } 51 /** 52 * @return LineStyle 53 */ 54 public function getConnectorLineStyle() 55 { 56 return $this->connectorLineStyle; 57 } 58 /** 59 * @param WaterfallChartDomain 60 */ 61 public function setDomain(WaterfallChartDomain $domain) 62 { 63 $this->domain = $domain; 64 } 65 /** 66 * @return WaterfallChartDomain 67 */ 68 public function getDomain() 69 { 70 return $this->domain; 71 } 72 /** 73 * @param bool 74 */ 75 public function setFirstValueIsTotal($firstValueIsTotal) 76 { 77 $this->firstValueIsTotal = $firstValueIsTotal; 78 } 79 /** 80 * @return bool 81 */ 82 public function getFirstValueIsTotal() 83 { 84 return $this->firstValueIsTotal; 85 } 86 /** 87 * @param bool 88 */ 89 public function setHideConnectorLines($hideConnectorLines) 90 { 91 $this->hideConnectorLines = $hideConnectorLines; 92 } 93 /** 94 * @return bool 95 */ 96 public function getHideConnectorLines() 97 { 98 return $this->hideConnectorLines; 99 } 100 /** 101 * @param WaterfallChartSeries[] 102 */ 103 public function setSeries($series) 104 { 105 $this->series = $series; 106 } 107 /** 108 * @return WaterfallChartSeries[] 109 */ 110 public function getSeries() 111 { 112 return $this->series; 113 } 114 /** 115 * @param string 116 */ 117 public function setStackedType($stackedType) 118 { 119 $this->stackedType = $stackedType; 120 } 121 /** 122 * @return string 123 */ 124 public function getStackedType() 125 { 126 return $this->stackedType; 127 } 128 /** 129 * @param DataLabel 130 */ 131 public function setTotalDataLabel(DataLabel $totalDataLabel) 132 { 133 $this->totalDataLabel = $totalDataLabel; 134 } 135 /** 136 * @return DataLabel 137 */ 138 public function getTotalDataLabel() 139 { 140 return $this->totalDataLabel; 141 } 142} 143 144// Adding a class alias for backwards compatibility with the previous class name. 145class_alias(WaterfallChartSpec::class, 'Google_Service_Sheets_WaterfallChartSpec'); 146