mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
Fix typo
This commit is contained in:
parent
16e2cbcfcd
commit
f207444307
@ -74,11 +74,11 @@ class XmlDecorator implements WebserviceDecorator
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
$service = new Webservice(array('foo' => 'bar'));
|
||||
$service->addDecorator(new JsonDecorator());
|
||||
echo $service->renderData();
|
||||
echo $service->renderData();
|
||||
|
Loading…
x
Reference in New Issue
Block a user