mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-02 13:07:27 +02:00
Fix typo
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user