Файл: concrete5.7.5.6/concrete/vendor/anahkiasen/html-object/src/HtmlObject/Text.php
Строк: 23
<?php
namespace HtmlObject;
use HtmlObjectTraitsTag;
/**
* A TextNode
*/
class Text extends Tag
{
/**
* Create a TextNode
*
* @param string $value
*/
public function __construct($value = null)
{
$this->value = $value;
}
/**
* Static alias for constructor
*
* @param string $value The text value
*
* @return Text
*/
public static function create($value = null)
{
return new static($value);
}
/**
* Render a TextNode
*
* @return string
*/
public function render()
{
return $this->value;
}
}