mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 13:59:08 +02:00
19 lines
358 B
PHP
19 lines
358 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Creational\AbstractFactory\Html;
|
|
|
|
use DesignPatterns\Creational\AbstractFactory\Text as BaseText;
|
|
|
|
class Text extends BaseText
|
|
{
|
|
/**
|
|
* some crude rendering from HTML output.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function render()
|
|
{
|
|
return '<div>'.htmlspecialchars($this->text).'</div>';
|
|
}
|
|
}
|