Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DocParser.php

DocParser::$annotationMetadata

Same name in this branch
  1. 11.1.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::annotationMetadata

Hash-map for caching annotation metadata.

Type: array

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php, line 152

Class

DocParser
A parser for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

private static $annotationMetadata = [
    Annotation\Target::class => [
        'is_annotation' => true,
        'has_constructor' => true,
        'has_named_argument_constructor' => false,
        'properties' => [],
        'targets_literal' => 'ANNOTATION_CLASS',
        'targets' => Target::TARGET_CLASS,
        'default_property' => 'value',
        'attribute_types' => [
            'value' => [
                'required' => false,
                'type' => 'array',
                'array_type' => 'string',
                'value' => 'array<string>',
            ],
        ],
    ],
    Annotation\Attribute::class => [
        'is_annotation' => true,
        'has_constructor' => false,
        'has_named_argument_constructor' => false,
        'targets_literal' => 'ANNOTATION_ANNOTATION',
        'targets' => Target::TARGET_ANNOTATION,
        'default_property' => 'name',
        'properties' => [
            'name' => 'name',
            'type' => 'type',
            'required' => 'required',
        ],
        'attribute_types' => [
            'value' => [
                'required' => true,
                'type' => 'string',
                'value' => 'string',
            ],
            'type' => [
                'required' => true,
                'type' => 'string',
                'value' => 'string',
            ],
            'required' => [
                'required' => false,
                'type' => 'boolean',
                'value' => 'boolean',
            ],
        ],
    ],
    Annotation\Attributes::class => [
        'is_annotation' => true,
        'has_constructor' => false,
        'has_named_argument_constructor' => false,
        'targets_literal' => 'ANNOTATION_CLASS',
        'targets' => Target::TARGET_CLASS,
        'default_property' => 'value',
        'properties' => [
            'value' => 'value',
        ],
        'attribute_types' => [
            'value' => [
                'type' => 'array',
                'required' => true,
                'array_type' => Annotation\Attribute::class,
                'value' => 'array<' . Annotation\Attribute::class . '>',
            ],
        ],
    ],
    Annotation\Enum::class => [
        'is_annotation' => true,
        'has_constructor' => true,
        'has_named_argument_constructor' => false,
        'targets_literal' => 'ANNOTATION_PROPERTY',
        'targets' => Target::TARGET_PROPERTY,
        'default_property' => 'value',
        'properties' => [
            'value' => 'value',
        ],
        'attribute_types' => [
            'value' => [
                'type' => 'array',
                'required' => true,
            ],
            'literal' => [
                'type' => 'array',
                'required' => false,
            ],
        ],
    ],
    Annotation\NamedArgumentConstructor::class => [
        'is_annotation' => true,
        'has_constructor' => false,
        'has_named_argument_constructor' => false,
        'targets_literal' => 'ANNOTATION_CLASS',
        'targets' => Target::TARGET_CLASS,
        'default_property' => null,
        'properties' => [],
        'attribute_types' => [],
    ],
];
RSS feed
Powered by Drupal