| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class BooleanValue |
||
| 11 | { |
||
| 12 | public static function withCustomTruths( |
||
| 13 | string $name, |
||
| 14 | array $truths, |
||
| 15 | array $falsehoods |
||
| 16 | ): Mapping { |
||
| 17 | return BooleanMapping::custom($name, $truths, $falsehoods); |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function withCustomTruthsAndKey( |
||
| 21 | string $name, |
||
| 22 | string $key, |
||
| 23 | array $truths, |
||
| 24 | array $falsehoods |
||
| 25 | ): Mapping { |
||
| 26 | return KeyTransform::use( |
||
| 27 | $key, |
||
| 28 | BooleanMapping::custom($name, $truths, $falsehoods) |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function inProperty(string $name): Mapping |
||
| 35 | } |
||
| 36 | |||
| 37 | public static function inPropertyWithDifferentKey( |
||
| 42 | } |
||
| 43 | } |
||
| 44 |