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\Slides;
19
20class TextStyle extends \Google\Model
21{
22  protected $backgroundColorType = OptionalColor::class;
23  protected $backgroundColorDataType = '';
24  /**
25   * @var string
26   */
27  public $baselineOffset;
28  /**
29   * @var bool
30   */
31  public $bold;
32  /**
33   * @var string
34   */
35  public $fontFamily;
36  protected $fontSizeType = Dimension::class;
37  protected $fontSizeDataType = '';
38  protected $foregroundColorType = OptionalColor::class;
39  protected $foregroundColorDataType = '';
40  /**
41   * @var bool
42   */
43  public $italic;
44  protected $linkType = Link::class;
45  protected $linkDataType = '';
46  /**
47   * @var bool
48   */
49  public $smallCaps;
50  /**
51   * @var bool
52   */
53  public $strikethrough;
54  /**
55   * @var bool
56   */
57  public $underline;
58  protected $weightedFontFamilyType = WeightedFontFamily::class;
59  protected $weightedFontFamilyDataType = '';
60
61  /**
62   * @param OptionalColor
63   */
64  public function setBackgroundColor(OptionalColor $backgroundColor)
65  {
66    $this->backgroundColor = $backgroundColor;
67  }
68  /**
69   * @return OptionalColor
70   */
71  public function getBackgroundColor()
72  {
73    return $this->backgroundColor;
74  }
75  /**
76   * @param string
77   */
78  public function setBaselineOffset($baselineOffset)
79  {
80    $this->baselineOffset = $baselineOffset;
81  }
82  /**
83   * @return string
84   */
85  public function getBaselineOffset()
86  {
87    return $this->baselineOffset;
88  }
89  /**
90   * @param bool
91   */
92  public function setBold($bold)
93  {
94    $this->bold = $bold;
95  }
96  /**
97   * @return bool
98   */
99  public function getBold()
100  {
101    return $this->bold;
102  }
103  /**
104   * @param string
105   */
106  public function setFontFamily($fontFamily)
107  {
108    $this->fontFamily = $fontFamily;
109  }
110  /**
111   * @return string
112   */
113  public function getFontFamily()
114  {
115    return $this->fontFamily;
116  }
117  /**
118   * @param Dimension
119   */
120  public function setFontSize(Dimension $fontSize)
121  {
122    $this->fontSize = $fontSize;
123  }
124  /**
125   * @return Dimension
126   */
127  public function getFontSize()
128  {
129    return $this->fontSize;
130  }
131  /**
132   * @param OptionalColor
133   */
134  public function setForegroundColor(OptionalColor $foregroundColor)
135  {
136    $this->foregroundColor = $foregroundColor;
137  }
138  /**
139   * @return OptionalColor
140   */
141  public function getForegroundColor()
142  {
143    return $this->foregroundColor;
144  }
145  /**
146   * @param bool
147   */
148  public function setItalic($italic)
149  {
150    $this->italic = $italic;
151  }
152  /**
153   * @return bool
154   */
155  public function getItalic()
156  {
157    return $this->italic;
158  }
159  /**
160   * @param Link
161   */
162  public function setLink(Link $link)
163  {
164    $this->link = $link;
165  }
166  /**
167   * @return Link
168   */
169  public function getLink()
170  {
171    return $this->link;
172  }
173  /**
174   * @param bool
175   */
176  public function setSmallCaps($smallCaps)
177  {
178    $this->smallCaps = $smallCaps;
179  }
180  /**
181   * @return bool
182   */
183  public function getSmallCaps()
184  {
185    return $this->smallCaps;
186  }
187  /**
188   * @param bool
189   */
190  public function setStrikethrough($strikethrough)
191  {
192    $this->strikethrough = $strikethrough;
193  }
194  /**
195   * @return bool
196   */
197  public function getStrikethrough()
198  {
199    return $this->strikethrough;
200  }
201  /**
202   * @param bool
203   */
204  public function setUnderline($underline)
205  {
206    $this->underline = $underline;
207  }
208  /**
209   * @return bool
210   */
211  public function getUnderline()
212  {
213    return $this->underline;
214  }
215  /**
216   * @param WeightedFontFamily
217   */
218  public function setWeightedFontFamily(WeightedFontFamily $weightedFontFamily)
219  {
220    $this->weightedFontFamily = $weightedFontFamily;
221  }
222  /**
223   * @return WeightedFontFamily
224   */
225  public function getWeightedFontFamily()
226  {
227    return $this->weightedFontFamily;
228  }
229}
230
231// Adding a class alias for backwards compatibility with the previous class name.
232class_alias(TextStyle::class, 'Google_Service_Slides_TextStyle');
233