-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20220726 update : add 4 kinds of save option and update apis.
- Loading branch information
1 parent
a0f77d4
commit 282ffd1
Showing
7 changed files
with
1,628 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,286 @@ | ||
<?php | ||
/** | ||
* DocxSaveOptions | ||
* | ||
* PHP version 5 | ||
* | ||
* @category Class | ||
* @package Aspose\Cells\Cloud | ||
* @author Swagger Codegen team | ||
* @link https://github.com/swagger-api/swagger-codegen | ||
*/ | ||
|
||
/* | ||
* <summary> | ||
* Copyright (c) 2022 Aspose.Cells Cloud | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* </summary> | ||
*/ | ||
|
||
/** | ||
* NOTE: This class is auto generated by the swagger code generator program. | ||
* https://github.com/swagger-api/swagger-codegen | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
namespace Aspose\Cells\Cloud\Model; | ||
use \Aspose\Cells\Cloud\ObjectSerializer; | ||
|
||
/** | ||
* DocxSaveOptions Class Doc Comment | ||
* | ||
* @category Class | ||
* @package Aspose\Cells\Cloud | ||
* @author Swagger Codegen team | ||
* @link https://github.com/swagger-api/swagger-codegen | ||
*/ | ||
class DocxSaveOptions extends SaveOptions | ||
{ | ||
const DISCRIMINATOR = null; | ||
|
||
/** | ||
* The original name of the model. | ||
* | ||
* @var string | ||
*/ | ||
protected static $swaggerModelName = 'DocxSaveOptions'; | ||
|
||
/** | ||
* Array of property to type mappings. Used for (de)serialization | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $swaggerTypes = [ | ||
|
||
]; | ||
|
||
/** | ||
* Array of property to format mappings. Used for (de)serialization | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $swaggerFormats = [ | ||
|
||
]; | ||
|
||
/** | ||
* Array of property to type mappings. Used for (de)serialization | ||
* | ||
* @return array | ||
*/ | ||
public static function swaggerTypes() | ||
{ | ||
return self::$swaggerTypes + parent::swaggerTypes(); | ||
} | ||
|
||
/** | ||
* Array of property to format mappings. Used for (de)serialization | ||
* | ||
* @return array | ||
*/ | ||
public static function swaggerFormats() | ||
{ | ||
return self::$swaggerFormats + parent::swaggerFormats(); | ||
} | ||
|
||
/** | ||
* Array of attributes where the key is the local name, | ||
* and the value is the original name | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $attributeMap = [ | ||
|
||
]; | ||
|
||
/** | ||
* Array of attributes to setter functions (for deserialization of responses) | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $setters = [ | ||
|
||
]; | ||
|
||
/** | ||
* Array of attributes to getter functions (for serialization of requests) | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $getters = [ | ||
|
||
]; | ||
|
||
/** | ||
* Array of attributes where the key is the local name, | ||
* and the value is the original name | ||
* | ||
* @return array | ||
*/ | ||
public static function attributeMap() | ||
{ | ||
return parent::attributeMap() + self::$attributeMap; | ||
} | ||
|
||
/** | ||
* Array of attributes to setter functions (for deserialization of responses) | ||
* | ||
* @return array | ||
*/ | ||
public static function setters() | ||
{ | ||
return parent::setters() + self::$setters; | ||
} | ||
|
||
/** | ||
* Array of attributes to getter functions (for serialization of requests) | ||
* | ||
* @return array | ||
*/ | ||
public static function getters() | ||
{ | ||
return parent::getters() + self::$getters; | ||
} | ||
|
||
/** | ||
* The original name of the model. | ||
* | ||
* @return string | ||
*/ | ||
public function getModelName() | ||
{ | ||
return self::$swaggerModelName; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
/** | ||
* Constructor | ||
* | ||
* @param mixed[] $data Associated array of property values | ||
* initializing the model | ||
*/ | ||
public function __construct(array $data = null) | ||
{ | ||
parent::__construct($data); | ||
|
||
} | ||
|
||
/** | ||
* Show all the invalid properties with reasons. | ||
* | ||
* @return array invalid properties with reasons | ||
*/ | ||
public function listInvalidProperties() | ||
{ | ||
$invalidProperties = parent::listInvalidProperties(); | ||
|
||
return $invalidProperties; | ||
} | ||
|
||
/** | ||
* Validate all the properties in the model | ||
* return true if all passed | ||
* | ||
* @return bool True if all properties are valid | ||
*/ | ||
public function valid() | ||
{ | ||
if (!parent::valid()) { | ||
return false; | ||
} | ||
|
||
return true; | ||
} | ||
|
||
/** | ||
* Returns true if offset exists. False otherwise. | ||
* | ||
* @param integer $offset Offset | ||
* | ||
* @return boolean | ||
*/ | ||
public function offsetExists($offset) | ||
{ | ||
return isset($this->container[$offset]); | ||
} | ||
|
||
/** | ||
* Gets offset. | ||
* | ||
* @param integer $offset Offset | ||
* | ||
* @return mixed | ||
*/ | ||
public function offsetGet($offset) | ||
{ | ||
return isset($this->container[$offset]) ? $this->container[$offset] : null; | ||
} | ||
|
||
/** | ||
* Sets value based on offset. | ||
* | ||
* @param integer $offset Offset | ||
* @param mixed $value Value to be set | ||
* | ||
* @return void | ||
*/ | ||
public function offsetSet($offset, $value) | ||
{ | ||
if (is_null($offset)) { | ||
$this->container[] = $value; | ||
} else { | ||
$this->container[$offset] = $value; | ||
} | ||
} | ||
|
||
/** | ||
* Unsets offset. | ||
* | ||
* @param integer $offset Offset | ||
* | ||
* @return void | ||
*/ | ||
public function offsetUnset($offset) | ||
{ | ||
unset($this->container[$offset]); | ||
} | ||
|
||
/** | ||
* Gets the string presentation of the object | ||
* | ||
* @return string | ||
*/ | ||
public function __toString() | ||
{ | ||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print | ||
return json_encode( | ||
ObjectSerializer::sanitizeForSerialization($this), | ||
JSON_PRETTY_PRINT | ||
); | ||
} | ||
|
||
return json_encode(ObjectSerializer::sanitizeForSerialization($this)); | ||
} | ||
} | ||
|
||
|
Oops, something went wrong.