mirror of
https://codeberg.org/reflect/reflect-rules-plugin.git
synced 2025-11-05 04:22:43 +01:00
Quick PR that adds return values to `Ruleset->GET()` and `Ruleset->POST()` to allow for method chaining with for example `Ruleset->validate_or_exit()`. This can come handy for streamlining simple rulesets.
# Example
```php
$ruleset->GET(new Rules("something")->type(Type::STRING))->validate_or_exit();
```
Reviewed-on: https://codeberg.org/reflect/reflect-rules-plugin/pulls/17
|
||
|---|---|---|
| .. | ||
| Rules.php | ||
| Ruleset.php | ||