Schema   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 11
ccs 7
cts 7
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api;
6
7
/**
8
 * Our API schema.
9
 */
10
class Schema extends \GraphQL\Type\Schema
11
{
12 47
    public function __construct()
13
    {
14 47
        $config = [
15 47
            'query' => fn () => _types()->get(QueryType::class),
16 47
            'mutation' => fn () => _types()->get(MutationType::class),
17 47
            'typeLoader' => fn (string $name) => _types()->loadType($name, 'Application\Model'),
18 47
        ];
19
20 47
        parent::__construct($config);
21
    }
22
}
23