| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class Callback implements RuleInterface |
||
| 13 | { |
||
| 14 | use HandlerClassNameTrait; |
||
| 15 | use RuleNameTrait; |
||
| 16 | |||
| 17 | 4 | public function __construct( |
|
| 18 | /** |
||
| 19 | * @var callable |
||
| 20 | */ |
||
| 21 | public $callback, |
||
| 22 | public bool $skipOnEmpty = false, |
||
| 23 | public bool $skipOnError = false, |
||
| 24 | public ?Closure $when = null, |
||
| 25 | ) { |
||
| 26 | } |
||
| 27 | |||
| 28 | 2 | public function getOptions(): array |
|
| 33 | ]; |
||
| 34 | } |
||
| 36 |