<?php

namespace SearchWP\Dependencies\RtfHtmlPhp;

class Text extends Element
{
    public $text;
    /*
     * Create a new Text instance with string content.
     */
    public function __construct(string $text)
    {
        $this->text = $text;
    }
    public function toString(int $level)
    {
        return \str_repeat("  ", $level) . "TEXT {$this->text}\n";
    }
}
