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
2namespace Apie\SchemaGenerator\Interfaces;
3
4use Apie\SchemaGenerator\Builders\ComponentsBuilder;
5use cebe\openapi\spec\Components;
6use ReflectionClass;
7
8/**
9 * @template T of object
10 * @extends SchemaProvider<T>
11 */
12interface 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}