2013-09-03 14:42:15 +02:00

26 lines
411 B
PHP

<?php
namespace DesignPatterns\AbstractFactory\Json;
use DesignPatterns\AbstractFactory\Text as BaseText;
/**
* Class Text
*
* Text is a text component with a JSON rendering
*/
class Text extends BaseText
{
/**
* some crude rendering from JSON output
*
* @return string
*/
public function render()
{
return json_encode(array('content' => $this->_text));
}
}