You are here

AnnotationEnumLiteral.php in Drupal 8

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php
View source
<?php

// @codingStandardsIgnoreFile
namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures;

use Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationEnumLiteral as SelfEnum;

/**
 * @Annotation
 * @Target("ALL")
 */
final class AnnotationEnumLiteral {
  const ONE = 1;
  const TWO = 2;
  const THREE = 3;

  /**
   * @var mixed
   *
   * @Enum(
   *      value = {
   *          1,
   *          2,
   *          3,
   *      },
   *      literal = {
   *          1 : "AnnotationEnumLiteral::ONE",
   *          2 : "AnnotationEnumLiteral::TWO",
   *          3 : "AnnotationEnumLiteral::THREE",
   *      }
   * )
   */
  public $value;

}

Classes

Namesort descending Description
AnnotationEnumLiteral Plugin annotation @Target("ALL");