Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | abstract class AbstractRuleFactory implements RuleFactoryInterface |
||
12 | { |
||
13 | /** |
||
14 | * Create a new Rule. |
||
15 | * |
||
16 | * @param int $filterType The filter type. |
||
17 | * @param int $flags Bitewise set of filter flags. |
||
18 | * @param array $options Filter options. |
||
19 | * @param \Closure|null Callback method. |
||
20 | * |
||
21 | * @return \FigTree\Validation\Contracts\RuleInterface |
||
22 | * |
||
23 | * @see https://www.php.net/manual/en/filter.filters.php |
||
24 | * @see https://www.php.net/manual/en/filter.filters.flags.php |
||
25 | */ |
||
26 | public function create(int $filterType, int $flags = 0, array $options = [], ?Closure $callback = null): RuleInterface |
||
31 |