| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function __construct(?callable $errorFormatter = null) |
||
| 16 | { |
||
| 17 | $this->isAsAsserted = IsAsAsserted::withAssertionAndErrorFormatter( |
||
| 18 | function ($data) { |
||
| 19 | return !empty($data); |
||
| 20 | }, |
||
| 21 | is_callable($errorFormatter) ? |
||
|
|
|||
| 22 | $errorFormatter : |
||
| 23 | function ($data) { |
||
| 24 | return [self::EMPTY]; |
||
| 25 | } |
||
| 34 |