| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function __invoke( |
||
| 22 | string $resourceClass, |
||
| 23 | string $operation, |
||
| 24 | array $groups, |
||
| 25 | int $recursion, |
||
| 26 | SchemaGenerator $generator |
||
| 27 | ) { |
||
| 28 | if ($recursion > 0 && $operation === 'get') { |
||
| 29 | return new Schema([ |
||
| 30 | 'type' => 'string', |
||
| 31 | 'format' => 'path', |
||
| 32 | ]); |
||
| 33 | } |
||
| 34 | return $generator->createSchema($resourceClass, $operation, $groups); |
||
| 35 | } |
||
| 37 |