'string', 'last' => 'string', 'organization' => 'string', 'adressLine1' => 'string', 'adressLine2' => 'string', 'adressLine3' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'first' => null, 'last' => null, 'organization' => null, 'adressLine1' => null, 'adressLine2' => null, 'adressLine3' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'first' => 'first', 'last' => 'last', 'organization' => 'organization', 'adressLine1' => 'adressLine1', 'adressLine2' => 'adressLine2', 'adressLine3' => 'adressLine3', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'first' => 'setFirst', 'last' => 'setLast', 'organization' => 'setOrganization', 'adressLine1' => 'setAdressLine1', 'adressLine2' => 'setAdressLine2', 'adressLine3' => 'setAdressLine3', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'first' => 'getFirst', 'last' => 'getLast', 'organization' => 'getOrganization', 'adressLine1' => 'getAdressLine1', 'adressLine2' => 'getAdressLine2', 'adressLine3' => 'getAdressLine3', ]; /** * 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['first'] = isset($data['first']) ? $this->createData($data['first'], 'first') : null; $this->container['last'] = isset($data['last']) ? $this->createData($data['last'], 'last') : null; $this->container['organization'] = isset($data['organization']) ? $this->createData($data['organization'], 'organization') : null; $this->container['adressLine1'] = isset($data['adressLine1']) ? $this->createData($data['adressLine1'], 'adressLine1') : null; $this->container['adressLine2'] = isset($data['adressLine2']) ? $this->createData($data['adressLine2'], 'adressLine2') : null; $this->container['adressLine3'] = isset($data['adressLine3']) ? $this->createData($data['adressLine3'], 'adressLine3') : 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 first * * @return string */ public function getFirst() { return $this->container['first']; } /** * Sets first * * @param string $first The first name. * * @return $this */ public function setFirst($first) { $this->container['first'] = $first; return $this; } /** * Gets last * * @return string */ public function getLast() { return $this->container['last']; } /** * Sets last * * @param string $last The last name. * * @return $this */ public function setLast($last) { $this->container['last'] = $last; return $this; } /** * Gets organization * * @return string */ public function getOrganization() { return $this->container['organization']; } /** * Sets organization * * @param string $organization The organization. * * @return $this */ public function setOrganization($organization) { $this->container['organization'] = $organization; return $this; } /** * Gets adressLine1 * * @return string */ public function getAdressLine1() { return $this->container['adressLine1']; } /** * Sets adressLine1 * * @param string $adressLine1 The first line of the address. * * @return $this */ public function setAdressLine1($adressLine1) { $this->container['adressLine1'] = $adressLine1; return $this; } /** * Gets adressLine2 * * @return string */ public function getAdressLine2() { return $this->container['adressLine2']; } /** * Sets adressLine2 * * @param string $adressLine2 The second line of the address. * * @return $this */ public function setAdressLine2($adressLine2) { $this->container['adressLine2'] = $adressLine2; return $this; } /** * Gets adressLine3 * * @return string */ public function getAdressLine3() { return $this->container['adressLine3']; } /** * Sets adressLine3 * * @param string $adressLine3 The third line of the address. * * @return $this */ public function setAdressLine3($adressLine3) { $this->container['adressLine3'] = $adressLine3; 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:----Ofv8uzYL6st9YAJVfG2xuQMyvFfB2/0KkZcxvvyjVTOzBZ4YuXaNKBIH008GJ1IVw1GZeHdKewx7CE2cSxAi32AFg9ZvGoCag5BoHSU6LH53Z27tqbtEeWDxoQU8tJU0zdphJvSRLKsQCCNgS6vHh8qoWF1APVyigAtcvncXFfZei3+JafInJQPaXaoBEV3Sb2IS0HiM7WD8aPURnnpZp51/vzAD6HNdqNNH581SQAISLZZ7LMDSB/88je09DcNgEruhslRsaoF+ddtnrIRiUEI71JAMkRilwGi6ikktdKmQxONtTzPEdDDoMWAJjaX90Lt0BfaAhQqqW1p7Usj92Njh4wYBWkHTJhDUzcjRvFu+0y0xQWJL5UyMS9lniuHzCx+Y8H0zuYnzpyDCtj8R8NcTjmS4jj0AsYl3YN84wrnWJNeSs5EYtngbGVKCEIlb/v7uv4wch5Alv2XltoyfQ0Rwa/3qAYtvfFr/lzlH/K5v47b0dGMx4pBqe20hAfxPa7YVEtUMboIjmxj26NS2RrZJp4ifd+g/HT6EK/Mdt2E2g00BL2spXbv8liPv8yeB4/MXzwKkq/Vwi5wXVoR34Q8M0qz1acx9sMCB5hbFxQ5AFbBNqiNcdxhhOWWNzGIZxi5CI6A2dykQrG846l4p3UTC3yb9GzUJWFwXvjPmwZw=----ATTACHMENT:----NzM2NDg0MjA0MTQ5MTI3NSA4OTI3MjgzNDc1NDgzMDE3IDcwOTE2OTY1MDkxOTIwOTM=