| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 19 | protected static function getWantedType(string $fieldName): TypeUtilInterface |
||
| 20 | { |
||
| 21 | if (!preg_match('/^[a-zA-Z0-9\.\-_]+$/', $fieldName)) { |
||
| 22 | throw new InvalidKeyException($fieldName, null); |
||
| 23 | } |
||
| 24 | return new Compound( |
||
| 25 | $fieldName, |
||
| 26 | new AnotherValueObject($fieldName, SecurityScheme::class), |
||
| 27 | new AnotherValueObject($fieldName, Reference::class) |
||
| 28 | ); |
||
| 31 |