File "Plain_Text.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/the-events-calendar/common/src/Common/Admin/Entities/Plain_Text.php
File size: 642 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Plain text element.
*
* @since 6.1.0
*/
declare( strict_types=1 );
namespace TEC\Common\Admin\Entities;
/**
* Class Plain_Text
*
* @since 6.1.0
*/
class Plain_Text extends Base_Entity {
/**
* The text content.
*
* @var string
*/
private string $content = '';
/**
* Plain_Text constructor.
*
* @since 6.1.0
*
* @param string $content The content for the text.
*/
public function __construct( string $content ) {
$this->content = $content;
}
/**
* Render the text content.
*
* @since 6.1.0
*
* @return void
*/
public function render() {
echo esc_html( $this->content );
}
}