Passed
Push — master ( 9897fc...f87053 )
by Pieter
02:43
created

ValueObjectSchemaBuilder   A

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 W2w\Lib\Apie\OpenApiSchema\SchemaGenerator;
7
use W2w\Lib\Apie\PluginInterfaces\DynamicSchemaInterface;
8
9
class ValueObjectSchemaBuilder 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 $resourceClass::toSchema();
19
    }
20
}
21