AnnotationEnumLiteralInvalid.php

Same filename and directory in other branches
  1. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php
  2. 8.9.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php
  3. 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures;


/**
 * @Annotation
 * @Target("ALL")
 */
final class AnnotationEnumLiteralInvalid {
    const ONE = 1;
    const TWO = 2;
    const THREE = 3;
    
    /**
     * @var mixed
     *
     * @Enum(
     *      value = {
     *          1,
     *          2
     *      },
     *      literal = {
     *          1 : "AnnotationEnumLiteral::ONE",
     *          2 : "AnnotationEnumLiteral::TWO",
     *          3 : "AnnotationEnumLiteral::THREE"
     *      }
     * )
     */
    public $value;

}

Classes

Title Deprecated Summary
AnnotationEnumLiteralInvalid Plugin annotation @Target("ALL");

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.