'\DateTime', 'updated' => '\DateTime', 'email' => 'string', 'role' => '\Domainrobot\Model\RecipientRole', 'status' => '\Domainrobot\Model\DeliveryStatus', 'attempt' => '\DateTime', 'attemptCount' => 'int', 'expire' => '\DateTime', 'logs' => '\Domainrobot\Model\RecipientLog[]', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'created' => 'date-time', 'updated' => 'date-time', 'email' => null, 'role' => null, 'status' => null, 'attempt' => 'date-time', 'attemptCount' => 'int32', 'expire' => 'date-time', 'logs' => 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', 'email' => 'email', 'role' => 'role', 'status' => 'status', 'attempt' => 'attempt', 'attemptCount' => 'attemptCount', 'expire' => 'expire', 'logs' => 'logs', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'created' => 'setCreated', 'updated' => 'setUpdated', 'email' => 'setEmail', 'role' => 'setRole', 'status' => 'setStatus', 'attempt' => 'setAttempt', 'attemptCount' => 'setAttemptCount', 'expire' => 'setExpire', 'logs' => 'setLogs', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'created' => 'getCreated', 'updated' => 'getUpdated', 'email' => 'getEmail', 'role' => 'getRole', 'status' => 'getStatus', 'attempt' => 'getAttempt', 'attemptCount' => 'getAttemptCount', 'expire' => 'getExpire', 'logs' => 'getLogs', ]; /** * 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['email'] = isset($data['email']) ? $this->createData($data['email'], 'email') : null; $this->container['role'] = isset($data['role']) ? $this->createData($data['role'], 'role') : null; $this->container['status'] = isset($data['status']) ? $this->createData($data['status'], 'status') : null; $this->container['attempt'] = isset($data['attempt']) ? $this->createData($data['attempt'], 'attempt') : null; $this->container['attemptCount'] = isset($data['attemptCount']) ? $this->createData($data['attemptCount'], 'attemptCount') : null; $this->container['expire'] = isset($data['expire']) ? $this->createData($data['expire'], 'expire') : null; $this->container['logs'] = isset($data['logs']) ? $this->createData($data['logs'], 'logs') : 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 email * * @return string */ public function getEmail() { return $this->container['email']; } /** * Sets email * * @param string $email the email address of the recipient * * @return $this */ public function setEmail($email) { $this->container['email'] = $email; return $this; } /** * Gets role * * @return \Domainrobot\Model\RecipientRole */ public function getRole() { return $this->container['role']; } /** * Sets role * * @param \Domainrobot\Model\RecipientRole $role The recipients role * * @return $this */ public function setRole($role) { $this->container['role'] = $role; return $this; } /** * Gets status * * @return \Domainrobot\Model\DeliveryStatus */ public function getStatus() { return $this->container['status']; } /** * Sets status * * @param \Domainrobot\Model\DeliveryStatus $status The actual delivery status of the email * * @return $this */ public function setStatus($status) { $this->container['status'] = $status; return $this; } /** * Gets attempt * * @return \DateTime */ public function getAttempt() { return $this->container['attempt']; } /** * Sets attempt * * @param \DateTime $attempt The date of the next attempt * * @return $this */ public function setAttempt($attempt) { $this->container['attempt'] = $attempt; return $this; } /** * Gets attemptCount * * @return int */ public function getAttemptCount() { return $this->container['attemptCount']; } /** * Sets attemptCount * * @param int $attemptCount The number of attempts * * @return $this */ public function setAttemptCount($attemptCount) { $this->container['attemptCount'] = $attemptCount; return $this; } /** * Gets expire * * @return \DateTime */ public function getExpire() { return $this->container['expire']; } /** * Sets expire * * @param \DateTime $expire The date after the mail delivery will be expire. * * @return $this */ public function setExpire($expire) { $this->container['expire'] = $expire; return $this; } /** * Gets logs * * @return \Domainrobot\Model\RecipientLog[] */ public function getLogs() { return $this->container['logs']; } /** * Sets logs * * @param \Domainrobot\Model\RecipientLog[] $logs The trace logs of each attempt * * @return $this */ public function setLogs($logs) { $this->container['logs'] = $logs; 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:----H9XIz/tEbzeJteQ2dGiOLLSCCgYmJY8DK/1ViMbzSJo9LYvs0PdIgQ6eB0fltOydpRDkANbXj7bogGLd8Zrt/s4OYCkVXSjzOnhwUA21l9I64R1IRGH+qVrSkahlbOOWC+4M1s/VKfEJlbKytLCoPyCPuexKonrUH+QchWlV/yqjhEe0pvcD5N4P2BGtP6MmDw0407lc165/0kJ03jQs7tNTzj7XR0agulDOTtEMvoRuYc56OuY6FxQ4kPP9pPZc8Qp0ZL351+DtnB8fFl2lcQ76bUtsMQ/f2H+JCsnmBk+kP0634bxy9ARbKzf3hI2Vm5HpYjhbVHSdJI4gBk2/7h4Yi9+yJ2ptSKikcmEZi+dque5RaQ77tqSmDyYZnAbsGyotAn7evYhtWpGB6gJ0HF3qzRRdsb03b+n7EkzcxTdn6RlvbVzMGxB71l+O5kzEswftbPeP8G/JyS39Y23BG6K6Q3+bc+/wsTL+16+jxiF6kBZoDAL1AQS6mhLnLb+3j9DlocYSwIeihmZYiQBw1uElXY/JzwsZhNmd+c+Mf0lL79940kYPuYTVolt1fGw2WI5t8bxmB8lVOl/atbXaFag7V5DenMNNHOmXGkWj0p7TuafdfbrVNADVgjDEbj42EGHvzZFDkqw04dJbcZVBBgTWfeBD+qZFqtuNcu09yXI=----ATTACHMENT:----NDQyMTc0NTk0NzYxOTE4MiA3MDE0MTIxNTIxMjEwNTA1IDYxNzU4ODY5NzEwNTExNzQ=