GeneratorInterface
interface GeneratorInterface (View source)
Methods
getRules()
Returns all the defined rules.
null|RuleInterface
getRule(string $handle)
Return a defined rule given its handle (if found).
Details
addRule(string $handle, RuleInterface $rule)
Add a new rule to be handled.
RuleInterface[]
getRules()
Returns all the defined rules.
null|RuleInterface
getRule(string $handle)
Return a defined rule given its handle (if found).