for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\Annotations\Metadata;
use Doctrine\Annotations\Annotation\Attribute;
use Doctrine\Annotations\Annotation\Attributes;
use Doctrine\Annotations\Annotation\Enum;
use Doctrine\Annotations\Annotation\Target;
/**
* Internal meta-annotations exposed by the Annotations library to declare custom user-land annotations.
*
* @internal
*/
final class InternalAnnotations
{
public static function createMetadata() : MetadataCollection
return new TransientMetadataCollection(
new AnnotationMetadata(
Attribute::class,
AnnotationTarget::annotation(),
false,
new PropertyMetadata(
'name',
['type' => 'string'],
true,
true
),
'type',
'required',
['type' => 'boolean']
)
Attributes::class,
AnnotationTarget::class(),
'value',
[
'type' => 'array',
'array_type' =>Attribute::class,
'value' =>'array<' . Attribute::class . '>',
],
Enum::class,
AnnotationTarget::property(),
['type' => 'array'],
'literal',
['type' => 'array']
Target::class,
'type' =>'array',
'array_type'=>'string',
'value' =>'array<string>',
);
}