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