/** * @return mixed|void */ protected function toXml() { $xmlCodec = new XmlCodec(); return $xmlCodec->encode($this); }
/** * Encodes an associative array as an XML document. * * @param $object * the object to be encoded as an XML document. * * @return string * a string containing the XML document. */ private static function xmlEncode($object) { return XmlCodec::encode($object); }