Passed
Pull Request — master (#38)
by Andrey
03:26
created

AbstractField::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 5
dl 0
loc 8
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Andi\GraphQL\Attribute;
6
7
abstract class AbstractField extends AbstractDefinition
8
{
9 2
    public function __construct(
10
        ?string $name = null,
11
        ?string $description = null,
12
        public readonly ?string $type = null,
13
        public readonly ?int $mode = null,
14
        public readonly ?string $deprecationReason = null,
15
    ) {
16 2
        parent::__construct($name, $description);
17
    }
18
}
19