You are here

final class AnnotationEnumLiteralInvalid in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationEnumLiteralInvalid
  2. 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationEnumLiteralInvalid

Plugin annotation

@Target("ALL");

Hierarchy

Expanded class hierarchy of AnnotationEnumLiteralInvalid

Related topics

File

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

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures
View source
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;

}

Members

Namesort descending Modifiers Type Description Overrides
AnnotationEnumLiteralInvalid::$value public property Plugin annotation @Enum( value = { 1, 2 }, literal = { 1 : "AnnotationEnumLiteral::ONE", 2 : "AnnotationEnumLiteral::TWO", 3 : "AnnotationEnumLiteral::THREE" } )
AnnotationEnumLiteralInvalid::ONE constant
AnnotationEnumLiteralInvalid::THREE constant
AnnotationEnumLiteralInvalid::TWO constant