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