Method |
Description |
|
__construct ( array $styles = [] ) |
Creates a new style set. |
|
add ( Style $style ) |
Adds a style. |
|
clear ( ) |
Clears the contents of the style set. |
|
contains ( string $tag ) : boolean |
Returns whether the style with the given tag exists. |
|
get ( string $tag ) : Style |
Returns the style with the given tag. |
|
isEmpty ( ) : boolean |
Returns whether the style set is empty. |
|
merge ( array $styles ) |
Adds styles to the style set. |
|
remove ( string $tag ) |
Removes a style. |
|
replace ( array $styles ) |
Sets the styles of the style set. |
|
toArray ( ) : Style[] |
Returns all styles. |
|