depage-forms v1.4.1
html forms made easy
Loading...
Searching...
No Matches
Html.php
Go to the documentation of this file.
1<?php
2
10
11namespace Depage\HtmlForm\Elements;
12
35class Html
36{
40 private $htmlString;
41
47 public function __construct(string $htmlString)
48 {
49 $this->htmlString = $htmlString;
50 }
51
57 public function __toString(): string
58 {
59 return (string) $this->htmlString;
60 }
61}
62
63/* vim:set ft=php sw=4 sts=4 fdm=marker et : */
Can be used to insert custom HTML between rendered HTML elements.
Definition Html.php:36
__construct(string $htmlString)
html class constructor
Definition Html.php:47
__toString()
Renders element to HTML.
Definition Html.php:57