Merge pull request #10 from dave1010/patch-2

Fix typo
This commit is contained in:
Dominik Liebler
2013-05-10 02:04:33 -07:00

View File

@@ -74,11 +74,11 @@ class XmlDecorator implements WebserviceDecorator
{ {
public function renderData($data) public function renderData($data)
{ {
// do some fany conversion to xml from array ... // do some fancy conversion to xml from array ...
return simplexml_load_string($data); return simplexml_load_string($data);
} }
} }
$service = new Webservice(array('foo' => 'bar')); $service = new Webservice(array('foo' => 'bar'));
$service->addDecorator(new JsonDecorator()); $service->addDecorator(new JsonDecorator());
echo $service->renderData(); echo $service->renderData();