Failed Conditions
Pull Request — new-parser-ast-metadata (#2)
by
unknown
02:24
created

AnnotationWithConstantsMetadata   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 12 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\Annotations\Fixtures\Metadata;
6
7
use Doctrine\Annotations\Metadata\AnnotationMetadata;
8
use Doctrine\Annotations\Metadata\AnnotationTarget;
9
use Doctrine\Annotations\Metadata\PropertyMetadata;
10
use Doctrine\Annotations\Metadata\Type\MixedType;
11
use Doctrine\Tests\Annotations\Fixtures\AnnotationWithConstants;
12
13
final class AnnotationWithConstantsMetadata
14
{
15
    public static function get(): AnnotationMetadata
16
    {
17
        return new AnnotationMetadata(
18
            AnnotationWithConstants::class,
19
            new AnnotationTarget(AnnotationTarget::TARGET_ALL),
20
            false,
21
            [
22
                // TODO: Add other properties
23
                new PropertyMetadata(
24
                    'value',
25
                    new MixedType(),
26
                    true
27
                )
28
            ]
29
        );
30
    }
31
}
32