lib/Model/ConsoleAdminListGameDeployDetailsOfProjectModelDataList.php (126 lines of code) (raw):
<?php
/**
* ConsoleAdminListGameDeployDetailsOfProjectModelDataList
*
* PHP version 5
*
* @category Class
* @package Yjopenapi\Client
*/
/** Package client
*
*
* YuanJing OpenAPI SDK for PHP
*
*
*
*/
namespace Yjopenapi\Client\Model;
use \ArrayAccess;
use \Yjopenapi\Client\Api\ObjectSerializer;
/**
* ConsoleAdminListGameDeployDetailsOfProjectModelDataList Class Doc Comment
*
* @category Class
* @package Yjopenapi\Client
*/
class ConsoleAdminListGameDeployDetailsOfProjectModelDataList implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $serialModelName = 'ConsoleAdminListGameDeployDetailsOfProjectModelDataList';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $serialTypes = [
'version_id' => 'string',
'version_name' => 'string',
'deploy_status' => 'string',
'auto_active_status' => 'string' ];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $serialFormats = [
'version_id' => null,
'version_name' => null,
'deploy_status' => null,
'auto_active_status' => null ];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function serialTypes()
{
return self::$serialTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function serialFormats()
{
return self::$serialFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'version_id' => 'versionId',
'version_name' => 'versionName',
'deploy_status' => 'deployStatus',
'auto_active_status' => 'autoActiveStatus' ];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'version_id' => 'setVersionId',
'version_name' => 'setVersionName',
'deploy_status' => 'setDeployStatus',
'auto_active_status' => 'setAutoActiveStatus' ];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'version_id' => 'getVersionId',
'version_name' => 'getVersionName',
'deploy_status' => 'getDeployStatus',
'auto_active_status' => 'getAutoActiveStatus' ];
/**
* 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::$serialModelName;
}
/**
* 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['version_id'] = isset($data['version_id']) ? $data['version_id'] : null;
$this->container['version_name'] = isset($data['version_name']) ? $data['version_name'] : null;
$this->container['deploy_status'] = isset($data['deploy_status']) ? $data['deploy_status'] : null;
$this->container['auto_active_status'] = isset($data['auto_active_status']) ? $data['auto_active_status'] : null;
}
/**
* Gets version_id
*
* @return string
*/
public function getVersionId()
{
return $this->container['version_id'];
}
/**
* Sets version_id
*
* @param string $version_id 版本ID
*
* @return $this
*/
public function setVersionId($version_id)
{
$this->container['version_id'] = $version_id;
return $this;
}
/**
* Gets version_name
*
* @return string
*/
public function getVersionName()
{
return $this->container['version_name'];
}
/**
* Sets version_name
*
* @param string $version_name 版本名称
*
* @return $this
*/
public function setVersionName($version_name)
{
$this->container['version_name'] = $version_name;
return $this;
}
/**
* Gets deploy_status
*
* @return string
*/
public function getDeployStatus()
{
return $this->container['deploy_status'];
}
/**
* Sets deploy_status
*
* @param string $deploy_status 版本部署状态
*
* @return $this
*/
public function setDeployStatus($deploy_status)
{
$this->container['deploy_status'] = $deploy_status;
return $this;
}
/**
* Gets auto_active_status
*
* @return string
*/
public function getAutoActiveStatus()
{
return $this->container['auto_active_status'];
}
/**
* Sets auto_active_status
*
* @param string $auto_active_status 版本待自动激活状态
*
* @return $this
*/
public function setAutoActiveStatus($auto_active_status)
{
$this->container['auto_active_status'] = $auto_active_status;
return $this;
}
/**
* 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));
}
}