We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class Field extends AbstractConfig |
||
8 | { |
||
9 | protected const NORMALIZERS = [ |
||
10 | 'resolver' => 'normalizeCallback', |
||
11 | // 'access' => 'normalizeCallback', |
||
12 | // 'public' => 'normalizeCallback', |
||
13 | // 'complexity' => 'normalizeCallback', |
||
14 | ]; |
||
15 | |||
16 | public string $type; |
||
17 | public ?string $description = null; |
||
18 | /** @var Arg[]|null */ |
||
19 | public ?array $args = null; |
||
20 | public ?Callback $resolver = null; |
||
21 | /** @var mixed|null */ |
||
22 | /*?Callback*/ public $access = null; |
||
23 | /** @var mixed|null */ |
||
24 | /*?Callback*/ public $public = null; |
||
25 | /** @var mixed|null */ |
||
26 | /*?Callback*/ public $complexity = null; |
||
27 | public ?Validation $validation = null; |
||
28 | public ?array $validationGroups = null; |
||
29 | public ?string $deprecationReason = null; |
||
30 | |||
31 | /** |
||
32 | * @var mixed |
||
33 | */ |
||
34 | public $defaultValue; |
||
35 | |||
36 | public bool $hasDefaultValue; |
||
37 | public bool $hasOnlyType; |
||
38 | |||
39 | 38 | public function __construct(array $config) |
|
44 | 38 | } |
|
45 | |||
46 | 29 | protected function normalizeArgs(array $args): array |
|
51 |