Represent a plain text which is inserted into HTML without any tags.
| package |
Default |
|---|
__construct(string $text = '')
stringA content of the text element
__toString() : string
string
getAttribute(string $name) : mixed
stringThe name of the attribute
mixed
getAttributeList() : string
string
getAttributes() : array
array
getText() : string
string
removeAttribute(string $name) : \Dotpay\Html\Node
setAttribute(string $name, mixed $value) : \Dotpay\Html\Node
stringThe name of the attribute
mixedThe value of the attribute
\Dotpay\Html\Node
setText(string $text) : \Dotpay\Html\PlainText
text : string
| var |
A content of the text element |
|---|
string
attributes : array
| var |
List of all attributes of the node |
|---|
array