source: vendor/google/apiclient-services/src/Sheets/TextFormat.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 3.3 KB
Line 
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 TextFormat extends \Google\Model
21{
22 /**
23 * @var bool
24 */
25 public $bold;
26 /**
27 * @var string
28 */
29 public $fontFamily;
30 /**
31 * @var int
32 */
33 public $fontSize;
34 protected $foregroundColorType = Color::class;
35 protected $foregroundColorDataType = '';
36 protected $foregroundColorStyleType = ColorStyle::class;
37 protected $foregroundColorStyleDataType = '';
38 /**
39 * @var bool
40 */
41 public $italic;
42 protected $linkType = Link::class;
43 protected $linkDataType = '';
44 /**
45 * @var bool
46 */
47 public $strikethrough;
48 /**
49 * @var bool
50 */
51 public $underline;
52
53 /**
54 * @param bool
55 */
56 public function setBold($bold)
57 {
58 $this->bold = $bold;
59 }
60 /**
61 * @return bool
62 */
63 public function getBold()
64 {
65 return $this->bold;
66 }
67 /**
68 * @param string
69 */
70 public function setFontFamily($fontFamily)
71 {
72 $this->fontFamily = $fontFamily;
73 }
74 /**
75 * @return string
76 */
77 public function getFontFamily()
78 {
79 return $this->fontFamily;
80 }
81 /**
82 * @param int
83 */
84 public function setFontSize($fontSize)
85 {
86 $this->fontSize = $fontSize;
87 }
88 /**
89 * @return int
90 */
91 public function getFontSize()
92 {
93 return $this->fontSize;
94 }
95 /**
96 * @param Color
97 */
98 public function setForegroundColor(Color $foregroundColor)
99 {
100 $this->foregroundColor = $foregroundColor;
101 }
102 /**
103 * @return Color
104 */
105 public function getForegroundColor()
106 {
107 return $this->foregroundColor;
108 }
109 /**
110 * @param ColorStyle
111 */
112 public function setForegroundColorStyle(ColorStyle $foregroundColorStyle)
113 {
114 $this->foregroundColorStyle = $foregroundColorStyle;
115 }
116 /**
117 * @return ColorStyle
118 */
119 public function getForegroundColorStyle()
120 {
121 return $this->foregroundColorStyle;
122 }
123 /**
124 * @param bool
125 */
126 public function setItalic($italic)
127 {
128 $this->italic = $italic;
129 }
130 /**
131 * @return bool
132 */
133 public function getItalic()
134 {
135 return $this->italic;
136 }
137 /**
138 * @param Link
139 */
140 public function setLink(Link $link)
141 {
142 $this->link = $link;
143 }
144 /**
145 * @return Link
146 */
147 public function getLink()
148 {
149 return $this->link;
150 }
151 /**
152 * @param bool
153 */
154 public function setStrikethrough($strikethrough)
155 {
156 $this->strikethrough = $strikethrough;
157 }
158 /**
159 * @return bool
160 */
161 public function getStrikethrough()
162 {
163 return $this->strikethrough;
164 }
165 /**
166 * @param bool
167 */
168 public function setUnderline($underline)
169 {
170 $this->underline = $underline;
171 }
172 /**
173 * @return bool
174 */
175 public function getUnderline()
176 {
177 return $this->underline;
178 }
179}
180
181// Adding a class alias for backwards compatibility with the previous class name.
182class_alias(TextFormat::class, 'Google_Service_Sheets_TextFormat');
Note: See TracBrowser for help on using the repository browser.