| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | return Keyed::mapping($name, |
||
| 18 | ConditionalMapping::ensureThat(IntegerCheck::passes(), IntegerMapping::inProperty($name)) |
||
| 19 | ); |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function inPropertyWithDifferentKey( |
||
| 23 | string $name, |
||
| 24 | string $key |
||
| 25 | ): KeyedMapping { |
||
| 26 | return Keyed::mapping($key, DifferentKey::use($key, |
||
| 27 | ConditionalMapping::ensureThat(IntegerCheck::passes(), IntegerMapping::inProperty($name)) |
||
| 31 |