CollectionSchemaBuilder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 10 1
1
<?php
2
3
namespace W2w\Laravel\Apie\Plugins\Illuminate\Schema;
4
5
use erasys\OpenApi\Spec\v3\Schema;
6
use W2w\Lib\Apie\OpenApiSchema\SchemaGenerator;
7
use W2w\Lib\Apie\PluginInterfaces\DynamicSchemaInterface;
8
9
class CollectionSchemaBuilder implements DynamicSchemaInterface
10
{
11
    public function __invoke(
12
        string $resourceClass,
13
        string $operation,
14
        array $groups,
15
        int $recursion,
16
        SchemaGenerator $generator
17
    ) {
18
        return new Schema([
19
            'type' => 'array',
20
            'items' => new Schema([]),
21
        ]);
22
    }
23
}
24