@@ -52,8 +52,9 @@ class CadLoadOptions extends LoadOptions
5252 */
5353 protected static $ swaggerTypes = [
5454 'layoutNames ' => 'string[] ' ,
55- 'backgroundColor ' => 'string ' ,
56- 'drawType ' => 'string '
55+ 'drawType ' => 'string ' ,
56+ 'drawColor ' => 'string ' ,
57+ 'backgroundColor ' => 'string '
5758 ];
5859
5960 /*
@@ -63,8 +64,9 @@ class CadLoadOptions extends LoadOptions
6364 */
6465 protected static $ swaggerFormats = [
6566 'layoutNames ' => null ,
66- 'backgroundColor ' => null ,
67- 'drawType ' => null
67+ 'drawType ' => null ,
68+ 'drawColor ' => null ,
69+ 'backgroundColor ' => null
6870 ];
6971
7072 /*
@@ -95,8 +97,9 @@ public static function swaggerFormats()
9597 */
9698 protected static $ attributeMap = [
9799 'layoutNames ' => 'LayoutNames ' ,
98- 'backgroundColor ' => 'BackgroundColor ' ,
99- 'drawType ' => 'DrawType '
100+ 'drawType ' => 'DrawType ' ,
101+ 'drawColor ' => 'DrawColor ' ,
102+ 'backgroundColor ' => 'BackgroundColor '
100103 ];
101104
102105 /*
@@ -106,8 +109,9 @@ public static function swaggerFormats()
106109 */
107110 protected static $ setters = [
108111 'layoutNames ' => 'setLayoutNames ' ,
109- 'backgroundColor ' => 'setBackgroundColor ' ,
110- 'drawType ' => 'setDrawType '
112+ 'drawType ' => 'setDrawType ' ,
113+ 'drawColor ' => 'setDrawColor ' ,
114+ 'backgroundColor ' => 'setBackgroundColor '
111115 ];
112116
113117 /*
@@ -117,8 +121,9 @@ public static function swaggerFormats()
117121 */
118122 protected static $ getters = [
119123 'layoutNames ' => 'getLayoutNames ' ,
120- 'backgroundColor ' => 'getBackgroundColor ' ,
121- 'drawType ' => 'getDrawType '
124+ 'drawType ' => 'getDrawType ' ,
125+ 'drawColor ' => 'getDrawColor ' ,
126+ 'backgroundColor ' => 'getBackgroundColor '
122127 ];
123128
124129 /*
@@ -193,8 +198,9 @@ public function __construct(array $data = null)
193198 parent ::__construct ($ data );
194199
195200 $ this ->container ['layoutNames ' ] = isset ($ data ['layoutNames ' ]) ? $ data ['layoutNames ' ] : null ;
196- $ this ->container ['backgroundColor ' ] = isset ($ data ['backgroundColor ' ]) ? $ data ['backgroundColor ' ] : null ;
197201 $ this ->container ['drawType ' ] = isset ($ data ['drawType ' ]) ? $ data ['drawType ' ] : null ;
202+ $ this ->container ['drawColor ' ] = isset ($ data ['drawColor ' ]) ? $ data ['drawColor ' ] : null ;
203+ $ this ->container ['backgroundColor ' ] = isset ($ data ['backgroundColor ' ]) ? $ data ['backgroundColor ' ] : null ;
198204 }
199205
200206 /*
@@ -268,54 +274,78 @@ public function setLayoutNames($layoutNames)
268274 }
269275
270276 /*
271- * Gets backgroundColor
277+ * Gets drawType
272278 *
273279 * @return string
274280 */
275- public function getBackgroundColor ()
281+ public function getDrawType ()
276282 {
277- return $ this ->container ['backgroundColor ' ];
283+ return $ this ->container ['drawType ' ];
278284 }
279285
280286 /*
281- * Sets backgroundColor
287+ * Sets drawType
282288 *
283- * @param string $backgroundColor Gets or sets a background color .
289+ * @param string $drawType A type of drawing .
284290 *
285291 * @return $this
286292 */
287- public function setBackgroundColor ( $ backgroundColor )
293+ public function setDrawType ( $ drawType )
288294 {
289- $ this ->container ['backgroundColor ' ] = $ backgroundColor ;
295+ $ allowedValues = $ this ->getDrawTypeAllowableValues ();
296+ if ((!is_numeric ($ drawType ) && !in_array ($ drawType , $ allowedValues )) || (is_numeric ($ drawType ) && !in_array ($ allowedValues [$ drawType ], $ allowedValues ))) {
297+ throw new \InvalidArgumentException (sprintf ("Invalid value for 'drawType', must be one of '%s' " , implode ("', ' " , $ allowedValues )));
298+ }
299+
300+ $ this ->container ['drawType ' ] = $ drawType ;
290301
291302 return $ this ;
292303 }
293304
294305 /*
295- * Gets drawType
306+ * Gets drawColor
296307 *
297308 * @return string
298309 */
299- public function getDrawType ()
310+ public function getDrawColor ()
300311 {
301- return $ this ->container ['drawType ' ];
312+ return $ this ->container ['drawColor ' ];
302313 }
303314
304315 /*
305- * Sets drawType
316+ * Sets drawColor
306317 *
307- * @param string $drawType Gets or sets type of drawing .
318+ * @param string $drawColor A foreground color .
308319 *
309320 * @return $this
310321 */
311- public function setDrawType ( $ drawType )
322+ public function setDrawColor ( $ drawColor )
312323 {
313- $ allowedValues = $ this ->getDrawTypeAllowableValues ();
314- if ((!is_numeric ($ drawType ) && !in_array ($ drawType , $ allowedValues )) || (is_numeric ($ drawType ) && !in_array ($ allowedValues [$ drawType ], $ allowedValues ))) {
315- throw new \InvalidArgumentException (sprintf ("Invalid value for 'drawType', must be one of '%s' " , implode ("', ' " , $ allowedValues )));
316- }
317-
318- $ this ->container ['drawType ' ] = $ drawType ;
324+ $ this ->container ['drawColor ' ] = $ drawColor ;
325+
326+ return $ this ;
327+ }
328+
329+ /*
330+ * Gets backgroundColor
331+ *
332+ * @return string
333+ */
334+ public function getBackgroundColor ()
335+ {
336+ return $ this ->container ['backgroundColor ' ];
337+ }
338+
339+ /*
340+ * Sets backgroundColor
341+ *
342+ * @param string $backgroundColor A background color.
343+ *
344+ * @return $this
345+ */
346+ public function setBackgroundColor ($ backgroundColor )
347+ {
348+ $ this ->container ['backgroundColor ' ] = $ backgroundColor ;
319349
320350 return $ this ;
321351 }
0 commit comments