interface ConfiguratorInterface (View source)

Methods

bool
hasRule(string $configuration, RuleInterface $rule)

Checks if a configuration contains a rule.

string
addRule(string $configuration, RuleInterface $rule)

Adds a rule to the configuration (if not already there).

string
removeRule(string $configuration, RuleInterface $rule)

Removes a rule from the configuration (if it's there).

Details

bool hasRule(string $configuration, RuleInterface $rule)

Checks if a configuration contains a rule.

Parameters

string $configuration The whole configuration.
RuleInterface $rule The rule to be checked.

Return Value

bool

string addRule(string $configuration, RuleInterface $rule)

Adds a rule to the configuration (if not already there).

Parameters

string $configuration The whole configuration.
RuleInterface $rule The rule to be added to the configuration.

Return Value

string Returns the modified configuration.

string removeRule(string $configuration, RuleInterface $rule)

Removes a rule from the configuration (if it's there).

Parameters

string $configuration The whole configuration.
RuleInterface $rule The rule to be removed from the configuration.

Return Value

string Returns the modified configuration.