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 CellFormat extends \Google\Model
21{
22  protected $backgroundColorType = Color::class;
23  protected $backgroundColorDataType = '';
24  protected $backgroundColorStyleType = ColorStyle::class;
25  protected $backgroundColorStyleDataType = '';
26  protected $bordersType = Borders::class;
27  protected $bordersDataType = '';
28  /**
29   * @var string
30   */
31  public $horizontalAlignment;
32  /**
33   * @var string
34   */
35  public $hyperlinkDisplayType;
36  protected $numberFormatType = NumberFormat::class;
37  protected $numberFormatDataType = '';
38  protected $paddingType = Padding::class;
39  protected $paddingDataType = '';
40  /**
41   * @var string
42   */
43  public $textDirection;
44  protected $textFormatType = TextFormat::class;
45  protected $textFormatDataType = '';
46  protected $textRotationType = TextRotation::class;
47  protected $textRotationDataType = '';
48  /**
49   * @var string
50   */
51  public $verticalAlignment;
52  /**
53   * @var string
54   */
55  public $wrapStrategy;
56
57  /**
58   * @param Color
59   */
60  public function setBackgroundColor(Color $backgroundColor)
61  {
62    $this->backgroundColor = $backgroundColor;
63  }
64  /**
65   * @return Color
66   */
67  public function getBackgroundColor()
68  {
69    return $this->backgroundColor;
70  }
71  /**
72   * @param ColorStyle
73   */
74  public function setBackgroundColorStyle(ColorStyle $backgroundColorStyle)
75  {
76    $this->backgroundColorStyle = $backgroundColorStyle;
77  }
78  /**
79   * @return ColorStyle
80   */
81  public function getBackgroundColorStyle()
82  {
83    return $this->backgroundColorStyle;
84  }
85  /**
86   * @param Borders
87   */
88  public function setBorders(Borders $borders)
89  {
90    $this->borders = $borders;
91  }
92  /**
93   * @return Borders
94   */
95  public function getBorders()
96  {
97    return $this->borders;
98  }
99  /**
100   * @param string
101   */
102  public function setHorizontalAlignment($horizontalAlignment)
103  {
104    $this->horizontalAlignment = $horizontalAlignment;
105  }
106  /**
107   * @return string
108   */
109  public function getHorizontalAlignment()
110  {
111    return $this->horizontalAlignment;
112  }
113  /**
114   * @param string
115   */
116  public function setHyperlinkDisplayType($hyperlinkDisplayType)
117  {
118    $this->hyperlinkDisplayType = $hyperlinkDisplayType;
119  }
120  /**
121   * @return string
122   */
123  public function getHyperlinkDisplayType()
124  {
125    return $this->hyperlinkDisplayType;
126  }
127  /**
128   * @param NumberFormat
129   */
130  public function setNumberFormat(NumberFormat $numberFormat)
131  {
132    $this->numberFormat = $numberFormat;
133  }
134  /**
135   * @return NumberFormat
136   */
137  public function getNumberFormat()
138  {
139    return $this->numberFormat;
140  }
141  /**
142   * @param Padding
143   */
144  public function setPadding(Padding $padding)
145  {
146    $this->padding = $padding;
147  }
148  /**
149   * @return Padding
150   */
151  public function getPadding()
152  {
153    return $this->padding;
154  }
155  /**
156   * @param string
157   */
158  public function setTextDirection($textDirection)
159  {
160    $this->textDirection = $textDirection;
161  }
162  /**
163   * @return string
164   */
165  public function getTextDirection()
166  {
167    return $this->textDirection;
168  }
169  /**
170   * @param TextFormat
171   */
172  public function setTextFormat(TextFormat $textFormat)
173  {
174    $this->textFormat = $textFormat;
175  }
176  /**
177   * @return TextFormat
178   */
179  public function getTextFormat()
180  {
181    return $this->textFormat;
182  }
183  /**
184   * @param TextRotation
185   */
186  public function setTextRotation(TextRotation $textRotation)
187  {
188    $this->textRotation = $textRotation;
189  }
190  /**
191   * @return TextRotation
192   */
193  public function getTextRotation()
194  {
195    return $this->textRotation;
196  }
197  /**
198   * @param string
199   */
200  public function setVerticalAlignment($verticalAlignment)
201  {
202    $this->verticalAlignment = $verticalAlignment;
203  }
204  /**
205   * @return string
206   */
207  public function getVerticalAlignment()
208  {
209    return $this->verticalAlignment;
210  }
211  /**
212   * @param string
213   */
214  public function setWrapStrategy($wrapStrategy)
215  {
216    $this->wrapStrategy = $wrapStrategy;
217  }
218  /**
219   * @return string
220   */
221  public function getWrapStrategy()
222  {
223    return $this->wrapStrategy;
224  }
225}
226
227// Adding a class alias for backwards compatibility with the previous class name.
228class_alias(CellFormat::class, 'Google_Service_Sheets_CellFormat');
229