AllPermissionsType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 16
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Output;
6
7
use GraphQL\Type\Definition\ObjectType;
8
9
class AllPermissionsType extends ObjectType
10
{
11 1
    public function __construct()
12
    {
13 1
        $config = [
14 1
            'name' => 'AllPermissions',
15 1
            'description' => 'Describe permissions for current user',
16 1
            'fields' => [
17 1
                'crud' => [
18 1
                    'type' => self::nonNull(_types()->get(CrudPermissionsListType::class)),
19 1
                    'description' => 'Permissions for object creation',
20 1
                ],
21 1
            ],
22 1
        ];
23
24 1
        parent::__construct($config);
25
    }
26
}
27