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

AnnotationTargetAllMetadata   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 15
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 19 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\IntegerType;
11
use Doctrine\Annotations\Metadata\Type\MixedType;
12
use Doctrine\Annotations\Metadata\Type\NullType;
13
use Doctrine\Annotations\Metadata\Type\UnionType;
14
use Doctrine\Tests\Annotations\Fixtures\AnnotationTargetAll;
15
16
final class AnnotationTargetAllMetadata
17
{
18
    public static function get(): AnnotationMetadata
19
    {
20
        return new AnnotationMetadata(
21
            AnnotationTargetAll::class,
22
            new AnnotationTarget(AnnotationTarget::TARGET_ALL),
23
            false,
24
            [
25
                new PropertyMetadata(
26
                    'data',
27
                    new MixedType(),
28
                    true
29
                ),
30
                new PropertyMetadata(
31
                    'name',
32
                    new MixedType()
33
                ),
34
                new PropertyMetadata(
35
                    'target',
36
                    new MixedType()
37
                ),
38
            ]
39
        );
40
    }
41
}
42