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

AnnotationTargetAllMetadata::get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 19
rs 9.7998
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\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