Passed
Pull Request — main (#133)
by Tom
03:50 queued 35s
created

Metadata::get()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 13
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 6
nc 3
nop 1
dl 0
loc 13
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ApiSkeletons\Doctrine\GraphQL\Metadata;
6
7
class Metadata
8
{
9
    public function __construct(
10
        protected array|null $metadataConfig,
11
    ) {
12
    }
13
14
    public function __invoke(): array|null
15
    {
16
        return $this->metadataConfig;
17
    }
18
}
19