| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | final class BoolPhpTypeSchemaResolver implements OpenApiPhpTypeSchemaResolverInterface |
||
| 25 | { |
||
| 26 | 3 | public function supportsPhpType(Type $phpType, Reflector $phpTypeHolder): bool |
|
| 27 | { |
||
| 28 | 3 | return $phpType->name === Type::PHP_TYPE_NAME_BOOL; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | 3 | public function resolvePhpTypeSchema(Type $phpType, Reflector $phpTypeHolder): array |
|
| 40 | 3 | ]; |
|
| 41 | } |
||
| 42 | |||
| 43 | 3 | public function getWeight(): int |
|
| 48 |