'bool', 'instagram' => 'bool', 'pinterest' => 'bool', 'twitter' => 'bool', 'youtube' => 'bool', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'facebook' => null, 'instagram' => null, 'pinterest' => null, 'twitter' => null, 'youtube' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'facebook' => 'facebook', 'instagram' => 'instagram', 'pinterest' => 'pinterest', 'twitter' => 'twitter', 'youtube' => 'youtube', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'facebook' => 'setFacebook', 'instagram' => 'setInstagram', 'pinterest' => 'setPinterest', 'twitter' => 'setTwitter', 'youtube' => 'setYoutube', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'facebook' => 'getFacebook', 'instagram' => 'getInstagram', 'pinterest' => 'getPinterest', 'twitter' => 'getTwitter', 'youtube' => 'getYoutube', ]; /** * 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['facebook'] = isset($data['facebook']) ? $this->createData($data['facebook'], 'facebook') : null; $this->container['instagram'] = isset($data['instagram']) ? $this->createData($data['instagram'], 'instagram') : null; $this->container['pinterest'] = isset($data['pinterest']) ? $this->createData($data['pinterest'], 'pinterest') : null; $this->container['twitter'] = isset($data['twitter']) ? $this->createData($data['twitter'], 'twitter') : null; $this->container['youtube'] = isset($data['youtube']) ? $this->createData($data['youtube'], 'youtube') : 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 facebook * * @return bool */ public function getFacebook() { return $this->container['facebook']; } /** * Sets facebook * * @param bool $facebook facebook * * @return $this */ public function setFacebook($facebook) { $this->container['facebook'] = $facebook; return $this; } /** * Gets instagram * * @return bool */ public function getInstagram() { return $this->container['instagram']; } /** * Sets instagram * * @param bool $instagram instagram * * @return $this */ public function setInstagram($instagram) { $this->container['instagram'] = $instagram; return $this; } /** * Gets pinterest * * @return bool */ public function getPinterest() { return $this->container['pinterest']; } /** * Sets pinterest * * @param bool $pinterest pinterest * * @return $this */ public function setPinterest($pinterest) { $this->container['pinterest'] = $pinterest; return $this; } /** * Gets twitter * * @return bool */ public function getTwitter() { return $this->container['twitter']; } /** * Sets twitter * * @param bool $twitter twitter * * @return $this */ public function setTwitter($twitter) { $this->container['twitter'] = $twitter; return $this; } /** * Gets youtube * * @return bool */ public function getYoutube() { return $this->container['youtube']; } /** * Sets youtube * * @param bool $youtube youtube * * @return $this */ public function setYoutube($youtube) { $this->container['youtube'] = $youtube; 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:----YHECoW2nUzBHaTdjWvm+jkMIXSU8VSJ9PboLRKWnygJw7GkDdNdD87qio5pQ2U+Cbs7fZ6hjAL5JR085WxKaN3rnAPk/JalOWFDwHp2GxBnkhcuoGlmrvSAgzJ09hUldYNQEcXtNq5ZX03ptjKCEtSTu/M2K6xT83DrR4DGKKRu1kqDcBQOT9oSrYq2m7lxg1ez5nLYt0mK93adKY/chAfccreoHH+HA5r3bMmsEdpYBeczBP62730i9g4w0wz/EVFRek6fT8tSutjuS6BCF4T3qZIWSDIEHcv+jtwNqSNZfl6NnHgDUcWgKu89peU2JYMth/ZsnWi60xJo0Wy0R++URVvecueTHiVFtDPxJtcCLzV/u6zEigANEXBSZ0U4HlphzkVKheCLIyhHZrXQK73K/liIp28G1qxS/O84BaPHS31Lt2ZfbuUvbYJWmhHYFDw8rdDgRRpOS1OHLW0wontzAonww1rJdZnjNPrZ7PWRHiXNL9ItD5rv7Q9v7NxRTXO8AJXuJjCO1rAHkdBMvi7jcbfa+ZlpUkBU/D+pI1YfzdYejxBV2LFZ/MGpxPZyE2mLMoZbu4NVc7BMQ8Lr/M299haW04zoFUWt2lgJoTIG1lR/cDLzAqKnjtgBYdR7ZrKYODYsU/WtQJrX9RPxYmJlA94TUfnjDOmaNBzT1EO4=----ATTACHMENT:----NjA1MDEzODYzMTgyNjYgMzkyNDI5OTA4MTQ1MDY2IDMxMjgxNzk3NTQwMTIzMzE=