interface ConfigurableRuleInterface (View source)

Interface describing a configurable rule for the web server.

Methods

addOption(string $handle, Option $option)

Add an option to this rule.

Option[]
getOptions()

Get all the rule options.

Option|null
getOption(string $handle)

Get an option given its handle.

Details

addOption(string $handle, Option $option)

Add an option to this rule.

Parameters

string $handle The option handle.
Option $option The option to add.

Option[] getOptions()

Get all the rule options.

Return Value

Option[]

Option|null getOption(string $handle)

Get an option given its handle.

Parameters

string $handle The option handle.

Return Value

Option|null