-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update client code for ee41599ea21797be07c8a827396f6ec00efddd1e (#26)
- Loading branch information
Showing
2 changed files
with
363 additions
and
3 deletions.
There are no files selected for viewing
360 changes: 360 additions & 0 deletions
360
src/lib/client/Model/ResponseWrapperTokenSecurityLockedDetail.php
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,360 @@ | ||
<?php | ||
/** | ||
* ResponseWrapperTokenSecurityLockedDetail | ||
* | ||
* PHP version 5 | ||
* | ||
* @category Class | ||
* @package Swagger\Client | ||
* @author Swagger Codegen team | ||
* @link https://github.com/swagger-api/swagger-codegen | ||
*/ | ||
|
||
/** | ||
* GoPlus Security API Document | ||
* | ||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) | ||
* | ||
* OpenAPI spec version: 1.0 | ||
* | ||
* Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
* Swagger Codegen version: 3.0.45 | ||
*/ | ||
/** | ||
* 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 Swagger\Client\Model; | ||
|
||
use \ArrayAccess; | ||
use \Swagger\Client\ObjectSerializer; | ||
|
||
/** | ||
* ResponseWrapperTokenSecurityLockedDetail Class Doc Comment | ||
* | ||
* @category Class | ||
* @package Swagger\Client | ||
* @author Swagger Codegen team | ||
* @link https://github.com/swagger-api/swagger-codegen | ||
*/ | ||
class ResponseWrapperTokenSecurityLockedDetail implements ModelInterface, ArrayAccess | ||
{ | ||
const DISCRIMINATOR = null; | ||
|
||
/** | ||
* The original name of the model. | ||
* | ||
* @var string | ||
*/ | ||
protected static $swaggerModelName = 'ResponseWrapperTokenSecurity_locked_detail'; | ||
|
||
/** | ||
* Array of property to type mappings. Used for (de)serialization | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $swaggerTypes = [ | ||
'amount' => 'string', | ||
'opt_time' => 'string', | ||
'end_time' => 'string' | ||
]; | ||
|
||
/** | ||
* Array of property to format mappings. Used for (de)serialization | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $swaggerFormats = [ | ||
'amount' => null, | ||
'opt_time' => null, | ||
'end_time' => null | ||
]; | ||
|
||
/** | ||
* Array of property to type mappings. Used for (de)serialization | ||
* | ||
* @return array | ||
*/ | ||
public static function swaggerTypes() | ||
{ | ||
return self::$swaggerTypes; | ||
} | ||
|
||
/** | ||
* Array of property to format mappings. Used for (de)serialization | ||
* | ||
* @return array | ||
*/ | ||
public static function swaggerFormats() | ||
{ | ||
return self::$swaggerFormats; | ||
} | ||
|
||
/** | ||
* Array of attributes where the key is the local name, | ||
* and the value is the original name | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $attributeMap = [ | ||
'amount' => 'amount', | ||
'opt_time' => 'opt_time', | ||
'end_time' => 'end_time' | ||
]; | ||
|
||
/** | ||
* Array of attributes to setter functions (for deserialization of responses) | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $setters = [ | ||
'amount' => 'setAmount', | ||
'opt_time' => 'setOptTime', | ||
'end_time' => 'setEndTime' | ||
]; | ||
|
||
/** | ||
* Array of attributes to getter functions (for serialization of requests) | ||
* | ||
* @var string[] | ||
*/ | ||
protected static $getters = [ | ||
'amount' => 'getAmount', | ||
'opt_time' => 'getOptTime', | ||
'end_time' => 'getEndTime' | ||
]; | ||
|
||
/** | ||
* Array of attributes where the key is the local name, | ||
* and the value is the original name | ||
* | ||
* @return array | ||
*/ | ||
public static function attributeMap() | ||
{ | ||
return self::$attributeMap; | ||
} | ||
|
||
/** | ||
* Array of attributes to setter functions (for deserialization of responses) | ||
* | ||
* @return array | ||
*/ | ||
public static function setters() | ||
{ | ||
return self::$setters; | ||
} | ||
|
||
/** | ||
* Array of attributes to getter functions (for serialization of requests) | ||
* | ||
* @return array | ||
*/ | ||
public static function getters() | ||
{ | ||
return self::$getters; | ||
} | ||
|
||
/** | ||
* The original name of the model. | ||
* | ||
* @return string | ||
*/ | ||
public function getModelName() | ||
{ | ||
return self::$swaggerModelName; | ||
} | ||
|
||
|
||
|
||
/** | ||
* Associative array for storing property values | ||
* | ||
* @var mixed[] | ||
*/ | ||
protected $container = []; | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @param mixed[] $data Associated array of property values | ||
* initializing the model | ||
*/ | ||
public function __construct(array $data = null) | ||
{ | ||
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; | ||
$this->container['opt_time'] = isset($data['opt_time']) ? $data['opt_time'] : null; | ||
$this->container['end_time'] = isset($data['end_time']) ? $data['end_time'] : null; | ||
} | ||
|
||
/** | ||
* Show all the invalid properties with reasons. | ||
* | ||
* @return array invalid properties with reasons | ||
*/ | ||
public function listInvalidProperties() | ||
{ | ||
$invalidProperties = []; | ||
|
||
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() | ||
{ | ||
return count($this->listInvalidProperties()) === 0; | ||
} | ||
|
||
|
||
/** | ||
* Gets amount | ||
* | ||
* @return string | ||
*/ | ||
public function getAmount() | ||
{ | ||
return $this->container['amount']; | ||
} | ||
|
||
/** | ||
* Sets amount | ||
* | ||
* @param string $amount \"amount\" describes the number of token locked | ||
* | ||
* @return $this | ||
*/ | ||
public function setAmount($amount) | ||
{ | ||
$this->container['amount'] = $amount; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Gets opt_time | ||
* | ||
* @return string | ||
*/ | ||
public function getOptTime() | ||
{ | ||
return $this->container['opt_time']; | ||
} | ||
|
||
/** | ||
* Sets opt_time | ||
* | ||
* @param string $opt_time \"opt_time\" describes when the token was locked | ||
* | ||
* @return $this | ||
*/ | ||
public function setOptTime($opt_time) | ||
{ | ||
$this->container['opt_time'] = $opt_time; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Gets end_time | ||
* | ||
* @return string | ||
*/ | ||
public function getEndTime() | ||
{ | ||
return $this->container['end_time']; | ||
} | ||
|
||
/** | ||
* Sets end_time | ||
* | ||
* @param string $end_time \"end_time\" describes when the token will be unlocked | ||
* | ||
* @return $this | ||
*/ | ||
public function setEndTime($end_time) | ||
{ | ||
$this->container['end_time'] = $end_time; | ||
|
||
return $this; | ||
} | ||
/** | ||
* Returns true if offset exists. False otherwise. | ||
* | ||
* @param integer $offset Offset | ||
* | ||
* @return boolean | ||
*/ | ||
#[\ReturnTypeWillChange] | ||
public function offsetExists($offset) | ||
{ | ||
return isset($this->container[$offset]); | ||
} | ||
|
||
/** | ||
* Gets offset. | ||
* | ||
* @param integer $offset Offset | ||
* | ||
* @return mixed | ||
*/ | ||
#[\ReturnTypeWillChange] | ||
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 | ||
*/ | ||
#[\ReturnTypeWillChange] | ||
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 | ||
*/ | ||
#[\ReturnTypeWillChange] | ||
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)); | ||
} | ||
} |
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