Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | namespace Apie\SchemaGenerator\Interfaces; |
3 | |
4 | use Apie\SchemaGenerator\Builders\ComponentsBuilder; |
5 | use cebe\openapi\spec\Components; |
6 | use ReflectionClass; |
7 | |
8 | /** |
9 | * @template T of object |
10 | * @extends SchemaProvider<T> |
11 | */ |
12 | interface ModifySchemaProvider extends SchemaProvider |
13 | { |
14 | /** |
15 | * @param ReflectionClass<object> $class |
16 | */ |
17 | public function supports(ReflectionClass $class): bool; |
18 | |
19 | /** |
20 | * @param ReflectionClass<T> $class |
21 | */ |
22 | public function addModificationSchemaFor( |
23 | ComponentsBuilder $componentsBuilder, |
24 | string $componentIdentifier, |
25 | ReflectionClass $class |
26 | ): Components; |
27 | } |