'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:----TkFkdb/3Ycx8e66wOghPGCHq16/wrI/ThJ/ohpO6p9fEw1gPB9YUAzb53vaimnLiXmw5bCZ2Adn5DDnqrcL8U6pYD4v+yKV+6zRQh6OaJ9oY5RbQrPD9rZPHEoJD6HvitVMBIaV8TpAmVqTKxDzaw8xq7qo64l/428eyTaC1CCaLDz8XEKgZs3hw9PHGwRt1zkOlxxo4M2k/HpIQJsck++/pK6+rpKpoLXiSKZ24PtI6BH1mxUNwN36shR/f/DhHOtX9/NrKNh8RRdFvRVdAhzy4HeaO+RxcZH0a1lWu2awoWVkOZ5QM9X03mD7wLeZbGgOlG2q5sLe+knDEGy8jdTT7MjExuIfJ3iFprZyr99ZR4OYHr0MZE9/8iI0V3YtRtBCnKBu7VszAbzlx62VDemsNzcSaBIii7f0xl+Qv4RpLuuf6q5PBQ8qcetztqk50N9vh7imGdJhSmvvChsCbBNbIAQJUOWZK7RiBgqTx91jsdrpShPT3ySQXAsLrNCZ59b0CHzRu9arSA3FRLbv1aDwSKUNZJSFqdmIci5dQeXbi28hIxnYOQjPREyXB+ym3jpb32x7DpwThdWdOxBUUc2WKGOCpYX5M4R4C8pdDXxSQacPdunECOTLnUHB6Cx3sjMKOib2P2916d3C+UBaEOkJxIOkp80Scc6JxJr+M8Io=----ATTACHMENT:----NDU4ODAwMTk1OTQ1Nzg4MiAzNTUyNTc1MzY2MzYyNjY3IDQzMTkxMDI0MDcwMzIyNg==