| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class BooleanValue |
||
| 12 | { |
||
| 13 | public static function withCustomTruths( |
||
| 14 | string $name, |
||
| 15 | array $truths, |
||
| 16 | array $falsehoods |
||
| 17 | ): KeyedMapping { |
||
| 18 | return Keyed::mapping($name, |
||
| 19 | BooleanMapping::custom($name, $truths, $falsehoods) |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 23 | public static function withCustomTruthsAndKey( |
||
| 24 | string $name, |
||
| 25 | string $key, |
||
| 26 | array $truths, |
||
| 27 | array $falsehoods |
||
| 28 | ): KeyedMapping { |
||
| 29 | return Keyed::mapping($key, DifferentKey::use( |
||
| 30 | $key, |
||
| 31 | BooleanMapping::custom($name, $truths, $falsehoods) |
||
| 32 | )); |
||
| 33 | } |
||
| 34 | |||
| 35 | public static function inProperty(string $name): KeyedMapping |
||
| 38 | } |
||
| 39 | |||
| 40 | public static function inPropertyWithDifferentKey( |
||
| 50 |