'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:----tX7d5IFKSTjkXtqtQI7F7A+JcS/55+dOIMSLWiH/OzVyzy+cFUTlSwTtOWTLqR0yi1qdy0i3e84R1IqgSp3EMBU0QVd9s928tL1B7oDh8LOeXlXiHyvzvmhlr5kADXwzTmMWQrrkABpesHnevlJcjfZe0ybOLZtjgghMXEJFadOFbSmTlalz3p0W28yPg0PN3a5tU+e8SgcfhzmowRLwaCCSMVGFKsLslagRJb0EOaAx1YXyNP0aTTdYRU/HsEnxMAieNS+pcteIKI4OEmI5qC7KqyGrnoG6ALCv4cP/Yq1rnghItKIZ02J69UvR927gk3Vad1r46KQ5Kgy38iywWyDGijzQE1dY7ahtv3RPcbyrj+RQit78IyaOTXbZoRRcojF0bVc3coEbshoKR83OKOSV4X+QMrzpDLEhWPt3k+oL0syC5Zx2dRIiadMobTJTAX7FS3Dm717Qb43Ak0OjPxHfajQtGi39+xyf/h5sQUgbUh2oQrrZTZNgxdsIyDGBWo3JGkU568Z4W2By+hv5aPoZy8q47x8ZgOrQgf7Lyl1asvVht8SOURs9hl5ffndpGXzYuRqXYeVJe8avaKd7pPU/TS8LFFchSpex2BNiz+R8rUR40XjqY8mMlld3S2l0VLKANZuLcQ2igBIz1xW9V8YL2zLCf8O5aCsrzsiQYN0=----ATTACHMENT:----MTk4NTQyMzA4Nzc2OTIxNSA3NDg4NDQ2MDI0NzI3NDUzIDc3NDgwMjA5NTY2NTU3NDU=