class Set implements JsonSerializable (View source)

Properties

protected string $name

The name of the style customizer set.

protected Style[] $styles

The list of styles associated to this set.

Methods

setName(string $name)

Set the name of the style customizer set.

string
getName()

Get the name of the style customizer set.

string
getDisplayName(string $format = 'html')

Get the display name for this style set (localized and escaped accordingly to $format).

addStyle(Style $style)

Add a style to this set.

Style[]
getStyles()

Get the list of styles associated to this set.

jsonSerialize()

No description

Details

setName(string $name)

Set the name of the style customizer set.

Parameters

string $name

string getName()

Get the name of the style customizer set.

Return Value

string

string getDisplayName(string $format = 'html')

Get the display name for this style set (localized and escaped accordingly to $format).

Parameters

string $format

= 'html' Escape the result in html format (if $format is 'html'). If $format is 'text' or any other value, the display name won't be escaped.

Return Value

string

addStyle(Style $style)

Add a style to this set.

Parameters

Style $style

Style[] getStyles()

Get the list of styles associated to this set.

Return Value

Style[]

jsonSerialize()

No description