CloneableFinalInstantiable
- Implements
Stringable
Methods |
public __construct(string $tagName, array $attributes = [], $contents = '', bool $selfClosing = false)
|
public __toString() : string
|
public getAllAttributes() : array
|
public getAttribute(string $key)
|
public getContents(bool $asString = true)
|
public getTagName() : string
|
public setAttribute(string $key, $value = true) : self
|
public setContents( $contents) : self Sets the inner contents of the tag (must be pre-escaped if needed)
|
Properties |
private array $attributes = []
|
private $contents = NULL
|
private bool $selfClosing
|
private string $tagName
|
Methods |
private getContentsAsString() : string
|