Skip to content

Commit f06cd21

Browse files
committed
Updated sources
1 parent aecf025 commit f06cd21

3 files changed

Lines changed: 336 additions & 3 deletions

File tree

composer.lock

Lines changed: 2 additions & 0 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 = '22.3';
98+
protected $clientVersion = '22.10';
9999

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

292292
/*
293-
* Gets client version, default value is '22.3'
293+
* Gets client version, default value is '22.10'
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: 22.3' . PHP_EOL;
311+
$report .= ' SDK Package Version: 22.10' . PHP_EOL;
312312
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
313313

314314
return $report;
Lines changed: 331 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,331 @@
1+
<?php
2+
/*
3+
* --------------------------------------------------------------------------------------------------------------------
4+
* <copyright company="Aspose Pty Ltd" file="PersonalStorageLoadOptions.php">
5+
* Copyright (c) 2003-2022 Aspose Pty Ltd
6+
* </copyright>
7+
* <summary>
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
14+
*
15+
* The above copyright notice and this permission notice shall be included in all
16+
* copies or substantial portions of the Software.
17+
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
* SOFTWARE.
25+
* </summary>
26+
* --------------------------------------------------------------------------------------------------------------------
27+
*/
28+
29+
namespace GroupDocs\Conversion\Model;
30+
use \GroupDocs\Conversion\ObjectSerializer;
31+
32+
/*
33+
* PersonalStorageLoadOptions
34+
*
35+
* @description Options for loading personal storage documents.
36+
*/
37+
class PersonalStorageLoadOptions extends LoadOptions
38+
{
39+
const DISCRIMINATOR = null;
40+
41+
/*
42+
* The original name of the model.
43+
*
44+
* @var string
45+
*/
46+
protected static $swaggerModelName = "PersonalStorageLoadOptions";
47+
48+
/*
49+
* Array of property to type mappings. Used for (de)serialization
50+
*
51+
* @var string[]
52+
*/
53+
protected static $swaggerTypes = [
54+
'folder' => 'string',
55+
'depth' => 'int'
56+
];
57+
58+
/*
59+
* Array of property to format mappings. Used for (de)serialization
60+
*
61+
* @var string[]
62+
*/
63+
protected static $swaggerFormats = [
64+
'folder' => null,
65+
'depth' => 'int32'
66+
];
67+
68+
/*
69+
* Array of property to type mappings. Used for (de)serialization
70+
*
71+
* @return array
72+
*/
73+
public static function swaggerTypes()
74+
{
75+
return self::$swaggerTypes + parent::swaggerTypes();
76+
}
77+
78+
/*
79+
* Array of property to format mappings. Used for (de)serialization
80+
*
81+
* @return array
82+
*/
83+
public static function swaggerFormats()
84+
{
85+
return self::$swaggerFormats + parent::swaggerFormats();
86+
}
87+
88+
/*
89+
* Array of attributes where the key is the local name,
90+
* and the value is the original name
91+
*
92+
* @var string[]
93+
*/
94+
protected static $attributeMap = [
95+
'folder' => 'Folder',
96+
'depth' => 'Depth'
97+
];
98+
99+
/*
100+
* Array of attributes to setter functions (for deserialization of responses)
101+
*
102+
* @var string[]
103+
*/
104+
protected static $setters = [
105+
'folder' => 'setFolder',
106+
'depth' => 'setDepth'
107+
];
108+
109+
/*
110+
* Array of attributes to getter functions (for serialization of requests)
111+
*
112+
* @var string[]
113+
*/
114+
protected static $getters = [
115+
'folder' => 'getFolder',
116+
'depth' => 'getDepth'
117+
];
118+
119+
/*
120+
* Array of attributes where the key is the local name,
121+
* and the value is the original name
122+
*
123+
* @return array
124+
*/
125+
public static function attributeMap()
126+
{
127+
return parent::attributeMap() + self::$attributeMap;
128+
}
129+
130+
/*
131+
* Array of attributes to setter functions (for deserialization of responses)
132+
*
133+
* @return array
134+
*/
135+
public static function setters()
136+
{
137+
return parent::setters() + self::$setters;
138+
}
139+
140+
/*
141+
* Array of attributes to getter functions (for serialization of requests)
142+
*
143+
* @return array
144+
*/
145+
public static function getters()
146+
{
147+
return parent::getters() + self::$getters;
148+
}
149+
150+
/*
151+
* The original name of the model.
152+
*
153+
* @return string
154+
*/
155+
public function getModelName()
156+
{
157+
return self::$swaggerModelName;
158+
}
159+
160+
161+
162+
163+
164+
165+
/*
166+
* Constructor
167+
*
168+
* @param mixed[] $data Associated array of property values
169+
* initializing the model
170+
*/
171+
public function __construct(array $data = null)
172+
{
173+
parent::__construct($data);
174+
175+
$this->container['folder'] = isset($data['folder']) ? $data['folder'] : null;
176+
$this->container['depth'] = isset($data['depth']) ? $data['depth'] : null;
177+
}
178+
179+
/*
180+
* Show all the invalid properties with reasons.
181+
*
182+
* @return array invalid properties with reasons
183+
*/
184+
public function listInvalidProperties()
185+
{
186+
$invalidProperties = parent::listInvalidProperties();
187+
188+
if ($this->container['depth'] === null) {
189+
$invalidProperties[] = "'depth' can't be null";
190+
}
191+
return $invalidProperties;
192+
}
193+
194+
/*
195+
* Validate all the properties in the model
196+
* return true if all passed
197+
*
198+
* @return bool True if all properties are valid
199+
*/
200+
public function valid()
201+
{
202+
if (!parent::valid()) {
203+
return false;
204+
}
205+
206+
if ($this->container['depth'] === null) {
207+
return false;
208+
}
209+
return true;
210+
}
211+
212+
213+
/*
214+
* Gets folder
215+
*
216+
* @return string
217+
*/
218+
public function getFolder()
219+
{
220+
return $this->container['folder'];
221+
}
222+
223+
/*
224+
* Sets folder
225+
*
226+
* @param string $folder Folder which to be processed Default is Inbox
227+
*
228+
* @return $this
229+
*/
230+
public function setFolder($folder)
231+
{
232+
$this->container['folder'] = $folder;
233+
234+
return $this;
235+
}
236+
237+
/*
238+
* Gets depth
239+
*
240+
* @return int
241+
*/
242+
public function getDepth()
243+
{
244+
return $this->container['depth'];
245+
}
246+
247+
/*
248+
* Sets depth
249+
*
250+
* @param int $depth Controls how many levels in depth to perform conversion
251+
*
252+
* @return $this
253+
*/
254+
public function setDepth($depth)
255+
{
256+
$this->container['depth'] = $depth;
257+
258+
return $this;
259+
}
260+
/*
261+
* Returns true if offset exists. False otherwise.
262+
*
263+
* @param integer $offset Offset
264+
*
265+
* @return boolean
266+
*/
267+
public function offsetExists($offset)
268+
{
269+
return isset($this->container[$offset]);
270+
}
271+
272+
/*
273+
* Gets offset.
274+
*
275+
* @param integer $offset Offset
276+
*
277+
* @return mixed
278+
*/
279+
public function offsetGet($offset)
280+
{
281+
return isset($this->container[$offset]) ? $this->container[$offset] : null;
282+
}
283+
284+
/*
285+
* Sets value based on offset.
286+
*
287+
* @param integer $offset Offset
288+
* @param mixed $value Value to be set
289+
*
290+
* @return void
291+
*/
292+
public function offsetSet($offset, $value)
293+
{
294+
if (is_null($offset)) {
295+
$this->container[] = $value;
296+
} else {
297+
$this->container[$offset] = $value;
298+
}
299+
}
300+
301+
/*
302+
* Unsets offset.
303+
*
304+
* @param integer $offset Offset
305+
*
306+
* @return void
307+
*/
308+
public function offsetUnset($offset)
309+
{
310+
unset($this->container[$offset]);
311+
}
312+
313+
/*
314+
* Gets the string presentation of the object
315+
*
316+
* @return string
317+
*/
318+
public function __toString()
319+
{
320+
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
321+
return json_encode(
322+
ObjectSerializer::sanitizeForSerialization($this),
323+
JSON_PRETTY_PRINT
324+
);
325+
}
326+
327+
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
328+
}
329+
}
330+
331+

0 commit comments

Comments
 (0)