mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-04 22:17:25 +02:00
fix PSR-0
This commit is contained in:
18
Decorator/Webservice.php
Normal file
18
Decorator/Webservice.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Decorator;
|
||||
|
||||
class Webservice implements Renderer
|
||||
{
|
||||
protected $_data;
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->_data = $data;
|
||||
}
|
||||
|
||||
public function renderData()
|
||||
{
|
||||
return $this->_data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user