mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 17:52:25 +01:00
31 lines
412 B
PHP
31 lines
412 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Decorator;
|
|
|
|
/**
|
|
* Class Webservice
|
|
*/
|
|
class Webservice implements RendererInterface
|
|
{
|
|
/**
|
|
* @var mixed
|
|
*/
|
|
protected $data;
|
|
|
|
/**
|
|
* @param mixed $data
|
|
*/
|
|
public function __construct($data)
|
|
{
|
|
$this->data = $data;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function renderData()
|
|
{
|
|
return $this->data;
|
|
}
|
|
}
|