Skip to content

Commit

Permalink
Update example_ruleset.md
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 10, 2024
1 parent ef6f8f8 commit ebb7705
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/example_ruleset.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Under the hood, the class will implement [`Realodix\Relax\RuleSet\RuleSetInterface`](../src/RuleSet/RuleSetInterface.php) which requires 2 methods to be implemented:

1. `name()`: Returns the name of the rule set
1. `name()` - Ruleset name

This method is optional. If not implemented, Relax will use the class name.

2. `rules()`: Returns an array of rules along with their configuration


Expand All @@ -13,9 +16,6 @@ class MyRuleSet extends AbstractRuleSet
{
/**
* Defines the name of the ruleset
*
* This method is optional. If not implemented, Relax will use the class name
* itself as the ruleset name.
*/
public function name(): string
{
Expand Down

0 comments on commit ebb7705

Please sign in to comment.