| Conditions | 5 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 21 | public function bBool($value = null, bool $null = false): array  | 
            ||
| 22 |     { | 
            ||
| 23 | // use NULL  | 
            ||
| 24 |         if ($value === null && $null) { | 
            ||
| 25 | return [null, PDO::PARAM_NULL];  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 |         if ($value === null && $null === false) { | 
            ||
| 29 |             throw new DomainException('Can not bind NULL in boolean spot.'); | 
            ||
| 30 | }  | 
            ||
| 31 | |||
| 32 | return [(bool) $value, PDO::PARAM_BOOL];  | 
            ||
| 33 | }  | 
            ||
| 58 |