ValueObjectSchemaBuilder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 8 1
1
<?php
2
3
4
namespace W2w\Lib\Apie\Plugins\ValueObject\Schema;
5
6
use erasys\OpenApi\Spec\v3\Schema;
7
use W2w\Lib\Apie\OpenApiSchema\OpenApiSchemaGenerator;
8
use W2w\Lib\Apie\PluginInterfaces\DynamicSchemaInterface;
9
10
class ValueObjectSchemaBuilder implements DynamicSchemaInterface
11
{
12
    public function __invoke(
13
        string $resourceClass,
14
        string $operation,
15
        array $groups,
16
        int $recursion,
17
        OpenApiSchemaGenerator $generator
18
    ): ?Schema {
19
        return $resourceClass::toSchema();
20
    }
21
}
22