| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function __invoke( |
||
| 30 | string $resourceClass, |
||
| 31 | string $operation, |
||
| 32 | array $groups, |
||
| 33 | int $recursion, |
||
| 34 | OpenApiSchemaGenerator $generator |
||
| 35 | ): ?Schema { |
||
| 36 | if ($recursion > 0 && $operation === 'get') { |
||
| 37 | return SchemaFactory::createStringSchema( |
||
| 38 | 'path', |
||
| 39 | $this->connection->getExampleUrl($resourceClass), |
||
| 40 | true |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | return $generator->createSchema($resourceClass, $operation, $groups); |
||
| 44 | } |
||
| 46 |