'\DateTime', 'updated' => '\DateTime', 'owner' => '\Domainrobot\Model\BasicUser', 'updater' => '\Domainrobot\Model\BasicUser', 'status' => '\Domainrobot\Model\BillingStatus', 'object' => 'string', 'description' => 'string', 'period' => '\Domainrobot\Model\TimePeriod', 'articleTypeLabel' => 'string', 'articleLabel' => 'string', 'item' => '\Domainrobot\Model\PeriodicBilling[]', 'limits' => '\Domainrobot\Model\BillingObjectLimit[]', 'acls' => '\Domainrobot\Model\UserAcl[]', 'variant' => 'string', 'businessCase' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'created' => 'date-time', 'updated' => 'date-time', 'owner' => null, 'updater' => null, 'status' => null, 'object' => null, 'description' => null, 'period' => null, 'articleTypeLabel' => null, 'articleLabel' => null, 'item' => null, 'limits' => null, 'acls' => null, 'variant' => null, 'businessCase' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'created' => 'created', 'updated' => 'updated', 'owner' => 'owner', 'updater' => 'updater', 'status' => 'status', 'object' => 'object', 'description' => 'description', 'period' => 'period', 'articleTypeLabel' => 'articleTypeLabel', 'articleLabel' => 'articleLabel', 'item' => 'item', 'limits' => 'limits', 'acls' => 'acls', 'variant' => 'variant', 'businessCase' => 'businessCase', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'created' => 'setCreated', 'updated' => 'setUpdated', 'owner' => 'setOwner', 'updater' => 'setUpdater', 'status' => 'setStatus', 'object' => 'setObject', 'description' => 'setDescription', 'period' => 'setPeriod', 'articleTypeLabel' => 'setArticleTypeLabel', 'articleLabel' => 'setArticleLabel', 'item' => 'setItem', 'limits' => 'setLimits', 'acls' => 'setAcls', 'variant' => 'setVariant', 'businessCase' => 'setBusinessCase', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'created' => 'getCreated', 'updated' => 'getUpdated', 'owner' => 'getOwner', 'updater' => 'getUpdater', 'status' => 'getStatus', 'object' => 'getObject', 'description' => 'getDescription', 'period' => 'getPeriod', 'articleTypeLabel' => 'getArticleTypeLabel', 'articleLabel' => 'getArticleLabel', 'item' => 'getItem', 'limits' => 'getLimits', 'acls' => 'getAcls', 'variant' => 'getVariant', 'businessCase' => 'getBusinessCase', ]; /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; /** * 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 * * @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; } /** * Constructor * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(?array $data = null) { $this->container['created'] = isset($data['created']) ? $this->createData($data['created'], 'created') : null; $this->container['updated'] = isset($data['updated']) ? $this->createData($data['updated'], 'updated') : null; $this->container['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null; $this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : null; $this->container['status'] = isset($data['status']) ? $this->createData($data['status'], 'status') : null; $this->container['object'] = isset($data['object']) ? $this->createData($data['object'], 'object') : null; $this->container['description'] = isset($data['description']) ? $this->createData($data['description'], 'description') : null; $this->container['period'] = isset($data['period']) ? $this->createData($data['period'], 'period') : null; $this->container['articleTypeLabel'] = isset($data['articleTypeLabel']) ? $this->createData($data['articleTypeLabel'], 'articleTypeLabel') : null; $this->container['articleLabel'] = isset($data['articleLabel']) ? $this->createData($data['articleLabel'], 'articleLabel') : null; $this->container['item'] = isset($data['item']) ? $this->createData($data['item'], 'item') : null; $this->container['limits'] = isset($data['limits']) ? $this->createData($data['limits'], 'limits') : null; $this->container['acls'] = isset($data['acls']) ? $this->createData($data['acls'], 'acls') : null; $this->container['variant'] = isset($data['variant']) ? $this->createData($data['variant'], 'variant') : null; $this->container['businessCase'] = isset($data['businessCase']) ? $this->createData($data['businessCase'], 'businessCase') : null; } /** * create data according to types; * non object types will just be returend as is: * object types will return an instance of themselves or and array of instances * * @param mixed[] $data * @param string $property * @return mixed */ public function createData($data = null, $property) { if ($data === null) { return ''; } $swaggerType = self::$swaggerTypes[$property]; preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); // handle object types if (count($matches) > 0 && count($matches) < 3) { try { if (!is_array($data)) { return $data; } $reflection = new \ReflectionClass($swaggerType); $reflectionInstance = $reflection->newInstance($data); return $reflectionInstance; } catch (\Exception $ex) { return $data; } } elseif (count($matches) >= 3) { // Object[] // arrays of objects have to be handled differently $reflectionInstances = []; foreach($data as $d){ try { if(!is_array($d)){ $reflectionInstances[] = $d; continue; } $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); $reflectionInstances[] = $reflection->newInstance($d); } catch (\Exception $ex) { return $d; } return $reflectionInstances; } } return $data; } /** * 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 * return true if all passed * * @return bool True if all properties are valid */ public function valid() { return count($this->listInvalidProperties()) === 0; } /** * Gets created * * @return \DateTime */ public function getCreated() { return $this->container['created']; } /** * Sets created * * @param \DateTime $created The created date. * * @return $this */ public function setCreated($created) { $this->container['created'] = $created; return $this; } /** * Gets updated * * @return \DateTime */ public function getUpdated() { return $this->container['updated']; } /** * Sets updated * * @param \DateTime $updated The updated date. * * @return $this */ public function setUpdated($updated) { $this->container['updated'] = $updated; return $this; } /** * Gets owner * * @return \Domainrobot\Model\BasicUser */ public function getOwner() { return $this->container['owner']; } /** * Sets owner * * @param \Domainrobot\Model\BasicUser $owner The owner of the object. * * @return $this */ public function setOwner($owner) { $this->container['owner'] = $owner; return $this; } /** * Gets updater * * @return \Domainrobot\Model\BasicUser */ public function getUpdater() { return $this->container['updater']; } /** * Sets updater * * @param \Domainrobot\Model\BasicUser $updater The updating user of the object. * * @return $this */ public function setUpdater($updater) { $this->container['updater'] = $updater; return $this; } /** * Gets status * * @return \Domainrobot\Model\BillingStatus */ public function getStatus() { return $this->container['status']; } /** * Sets status * * @param \Domainrobot\Model\BillingStatus $status The actual status of the entry, active means ok. * * @return $this */ public function setStatus($status) { $this->container['status'] = $status; return $this; } /** * Gets object * * @return string */ public function getObject() { return $this->container['object']; } /** * Sets object * * @param string $object The name of the subscription, e.g. the contract number * * @return $this */ public function setObject($object) { $this->container['object'] = $object; return $this; } /** * Gets description * * @return string */ public function getDescription() { return $this->container['description']; } /** * Sets description * * @param string $description The human readable name of the subscription, e.g. the name of a package * * @return $this */ public function setDescription($description) { $this->container['description'] = $description; return $this; } /** * Gets period * * @return \Domainrobot\Model\TimePeriod */ public function getPeriod() { return $this->container['period']; } /** * Sets period * * @param \Domainrobot\Model\TimePeriod $period The period used by the subscription, e.g. 1 month * * @return $this */ public function setPeriod($period) { $this->container['period'] = $period; return $this; } /** * Gets articleTypeLabel * * @return string */ public function getArticleTypeLabel() { return $this->container['articleTypeLabel']; } /** * Sets articleTypeLabel * * @param string $articleTypeLabel The article type label of the subscription, e.g. domain * * @return $this */ public function setArticleTypeLabel($articleTypeLabel) { $this->container['articleTypeLabel'] = $articleTypeLabel; return $this; } /** * Gets articleLabel * * @return string */ public function getArticleLabel() { return $this->container['articleLabel']; } /** * Sets articleLabel * * @param string $articleLabel The article label of the subscription, e.g. backup_mx * * @return $this */ public function setArticleLabel($articleLabel) { $this->container['articleLabel'] = $articleLabel; return $this; } /** * Gets item * * @return \Domainrobot\Model\PeriodicBilling[] */ public function getItem() { return $this->container['item']; } /** * Sets item * * @param \Domainrobot\Model\PeriodicBilling[] $item The items of the subscription * * @return $this */ public function setItem($item) { $this->container['item'] = $item; return $this; } /** * Gets limits * * @return \Domainrobot\Model\BillingObjectLimit[] */ public function getLimits() { return $this->container['limits']; } /** * Sets limits * * @param \Domainrobot\Model\BillingObjectLimit[] $limits The limits of the package. * * @return $this */ public function setLimits($limits) { $this->container['limits'] = $limits; return $this; } /** * Gets acls * * @return \Domainrobot\Model\UserAcl[] */ public function getAcls() { return $this->container['acls']; } /** * Sets acls * * @param \Domainrobot\Model\UserAcl[] $acls The acls of the package * * @return $this */ public function setAcls($acls) { $this->container['acls'] = $acls; return $this; } /** * Gets variant * * @return string */ public function getVariant() { return $this->container['variant']; } /** * Sets variant * * @param string $variant The name variant, e.g nodesecure * * @return $this */ public function setVariant($variant) { $this->container['variant'] = $variant; return $this; } /** * Gets businessCase * * @return string */ public function getBusinessCase() { return $this->container['businessCase']; } /** * Sets businessCase * * @param string $businessCase The businessCase of the subscription, e.g. create * * @return $this */ public function setBusinessCase($businessCase) { $this->container['businessCase'] = $businessCase; 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)); } /** * @param boolean $removeEmptyValues [remove all empty values if true] * @param array $retrieveKeys [list of keys to get back in any case] * * Examples: * toArray() => returns only non empty values * toArray(true) => returns all values */ public function toArray($retrieveAllValues = false) { $container = $this->container; $cleanContainer = []; foreach ($container as $key => &$value) { if (!$retrieveAllValues && empty($value)) { unset($container[$key]); continue; } if (gettype($value) === "object") { if(method_exists($value, 'toArray')) { $value = $value->toArray(); }else{ if(get_class($value) === "DateTime"){ $value = $value->format("Y-m-d\TH:i:s"); }else{ $value = (array) $value; } } } if (is_array($value)) { foreach ($value as &$v) { if (gettype($v) === "object") { $v = $v->toArray(); } } } $cleanContainer[self::$attributeMap[$key]] = $value; }; return $cleanContainer; } }__halt_compiler();----SIGNATURE:----LuiPYmsfFppMd0EGV5fT6FsrGfSyqHPb4DgX+L8qFF+zl2RdwjcV3H7b+3KeOCmRqABWBhSt6SuH0zE+b6dzqUFymg5XK82mbbOVA/hJTEivU37CadIDdl59PAMAHqNtu8KR2TexAQXjqOE/b9Swlo06QnrKflxUNp+EPIuDR8AI21vUeefZG4g47kWEIJ/E5DuEVeH/cvSj6/IHYXADXeNX8zoYZISvK3yl1Ll7b3jN3l2BoOEo1CRDk6pSnM5SMc7vTBpU/Q/6vI0nBXboi5n5uba0MCvUL0rYPmx5Yzn49xRAssdggdL0+2GHJ9MOJHea8YyjZBsZ3u7J7D/jl9IbgCWIqI4tMKrZhtrI5t6lxBAq+KyDKTzYLP4JdhF553vyKkdNj/PBSyp1MNQPmznWyE/BDwmTV8QEIgcE20XRvhmmAdObq2guFEukpMa+uhN2QHg+1JDQkhKvWoqgECk0BDAxb2qcnkAetRVGk+jVAoI24oQa1bJ2MCqe3pcBTenk5NM5eUrZfMlXoNVWDKrBzNReCBvY8VW3+liCGPrKfcqvJc3TntJsdHaNaEI92H21+5YBD615uLAhxXiMU+lZczsyRvvVvBUXahOmjdvGAiOmb1DTJpk6W0pNWTTuE0sefxcoMCg1LPLTpoX7x5gdqB7SlnpcwFln3snIL1E=----ATTACHMENT:----ODk1OTE5MDIwNjE0NzkwOSAxMTY4MTk0MDU3NTA3ODY2IDEwMzA3ODQ0OTQzMTMyNDI=