Метод |
Описание |
|
__construct ( $name ) |
Sets up the tag with a name. |
|
__get ( string $key ) : mixed |
Magic method to get any of the attributes. |
|
__set ( string $key, mixed $value ) |
Magic method to set any attribute. |
|
getAttribute ( string $key ) : mixed |
Returns an attribute by the key |
|
getAttributes ( ) : array |
Returns all attributes of this tag. |
|
isSelfClosing ( ) : boolean |
Checks if the tag is self closing. |
|
makeClosingTag ( ) : string |
Generates the closing tag for this object. |
|
makeOpeningTag ( ) : string |
Generates the opening tag for this object. |
|
name ( ) : string |
Returns the name of this tag. |
|
noise ( $noise ) |
Sets the noise for this tag (if any) |
|
removeAllAttributes ( ) : void |
Removes all attributes on this tag. |
|
removeAttribute ( $key ) : void |
Removes an attribute from this tag. |
|
selfClosing ( ) |
Sets the tag to be self closing. |
|
setAttribute ( string $key, string | array $value ) |
Set an attribute for this tag. |
|
setAttributes ( array $attr ) |
Sets the attributes for this tag |
|
setEncoding ( stringEncode\Encode $encode ) |
Sets the encoding type to be used. |
|