Skip to content

Commit 598238b

Browse files
committed
Updated sources
1 parent 5bde385 commit 598238b

File tree

8 files changed

+1360
-342
lines changed

8 files changed

+1360
-342
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "This repository contains GroupDocs.Conversion Cloud SDK for PHP source code.",
33
"name": "groupdocscloud/groupdocs-conversion-cloud",
4-
"version": "25.6",
4+
"version": "25.8",
55
"license": "MIT",
66
"type": "library",
77
"keywords": [

composer.lock

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GroupDocs/Conversion/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Configuration
9595
* Version of client SDK
9696
*
9797
*/
98-
protected $clientVersion = '25.6';
98+
protected $clientVersion = '25.8';
9999

100100
/*
101101
* Constructor
@@ -290,7 +290,7 @@ public function getClientName()
290290
}
291291

292292
/*
293-
* Gets client version, default value is '25.6'
293+
* Gets client version, default value is '25.8'
294294
*
295295
*/
296296
public function getClientVersion()
@@ -308,7 +308,7 @@ public static function toDebugReport()
308308
$report = 'PHP SDK (GroupDocs\Conversion) Debug Report:' . PHP_EOL;
309309
$report .= ' OS: ' . php_uname() . PHP_EOL;
310310
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
311-
$report .= ' SDK Package Version: 25.6' . PHP_EOL;
311+
$report .= ' SDK Package Version: 25.8' . PHP_EOL;
312312
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
313313

314314
return $report;

src/GroupDocs/Conversion/Model/CadLoadOptions.php

Lines changed: 60 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)