eddiejaoude cee1dd1da5 Cleaned up code to be consistent, inc. adding docblocs, using PSR naming conventions & typos
Docblocs benefits:
- IDE auto complete gives info on type etc
- Auto documentation on CI
2013-09-03 08:08:19 +01:00

27 lines
463 B
PHP

<?php
namespace DesignPatterns\AbstractFactory\Html;
use DesignPatterns\AbstractFactory\Text as BaseText;
/**
* Class Text
*
* Text is a concrete text for HTML rendering
*
* @package DesignPatterns\AbstractFactory\Html
*/
class Text extends BaseText
{
/**
* some crude rendering from HTML output
*
* @return string
*/
public function render()
{
return '<div>' . htmlspecialchars($this->_text) . '</div>';
}
}