| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 3 | public function resolvePhpTypeSchema(Type $phpType, Reflector $phpTypeHolder): array |
|
| 35 | { |
||
| 36 | 3 | $this->supportsPhpType($phpType, $phpTypeHolder) or throw new UnsupportedPhpTypeException(); |
|
| 37 | |||
| 38 | 3 | return [ |
|
| 39 | 3 | 'type' => Type::OAS_TYPE_NAME_NUMBER, |
|
| 40 | 3 | 'format' => 'double', |
|
| 41 | 3 | 'example' => 0.0, |
|
| 42 | 3 | ]; |
|
| 50 |