Failed Conditions
Push — new-parser-ast-metadata ( 6127e0...5a4a16 )
by Michael
12s
created

AnnotationWithConstantsMetadata::get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 12
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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