| Total Complexity | 8 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | final class WhenEmpty |
||
| 30 | { |
||
| 31 | public function __construct( |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param mixed $value The validated value. |
||
| 42 | * @param bool $isAttributeMissing A flag defining whether the attribute is missing (not used / not passed at all). |
||
| 43 | * |
||
| 44 | * @return bool Whether the validated value is considered empty. |
||
| 45 | */ |
||
| 46 | public function __invoke(mixed $value, bool $isAttributeMissing): bool |
||
| 71 |