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

ValueObjectSchemaBuilder::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 5
dl 0
loc 8
rs 10
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