mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 22:09:23 +02:00
19 lines
356 B
PHP
19 lines
356 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Creational\AbstractFactory\Json;
|
|
|
|
use DesignPatterns\Creational\AbstractFactory\Text as BaseText;
|
|
|
|
class Text extends BaseText
|
|
{
|
|
/**
|
|
* some crude rendering from JSON output.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function render()
|
|
{
|
|
return json_encode(array('content' => $this->text));
|
|
}
|
|
}
|