$value) { // If the elements of the given array are not Zend\XmlRpc\Value objects, // we need to convert them as such (using auto-detection from PHP value) if (!$value instanceof parent) { $value = static::getXmlRpcValue($value, self::AUTO_DETECT_TYPE); } $this->value[$key] = $value; } } /** * Return the value of this object, convert the XML-RPC native collection values into a PHP array * * @return array */ public function getValue() { $values = (array) $this->value; foreach ($values as $key => $value) { $values[$key] = $value->getValue(); } return $values; } }