class StyleList implements JsonSerializable (View source)

Properties

protected Set[] $sets

The list of the style sets.

Methods

Set
addSet(string $name)

Add a new empty style set.

Set[]
getSets()

Get the list of the style sets.

jsonSerialize()

No description

iterable
getAllStyles()

Traverses all sets and retrieves all styles. Basically a shortcut to allow developers not to have to traverse the sets themselves when working with the basic values in a style list.

Details

Set addSet(string $name)

Add a new empty style set.

Parameters

string $name

the name of the style set

Return Value

Set

Set[] getSets()

Get the list of the style sets.

Return Value

Set[]

jsonSerialize()

No description

iterable getAllStyles()

Traverses all sets and retrieves all styles. Basically a shortcut to allow developers not to have to traverse the sets themselves when working with the basic values in a style list.

Return Value

iterable