class AnnotationEnumLiteral

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationEnumLiteral
  2. 8.9.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationEnumLiteral
  3. 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationEnumLiteral

Plugin annotation

@Target("ALL");

Hierarchy

Expanded class hierarchy of AnnotationEnumLiteral

Related topics

1 file declares its use of AnnotationEnumLiteral
AnnotationEnumLiteral.php in core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php, line 13

Namespace

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

}

Members

Title Sort descending Modifiers Object type Summary
AnnotationEnumLiteral::$value public property Plugin annotation

@Enum(
value = {
1,
2,
3,
},
literal = {
1 : "AnnotationEnumLiteral::ONE",
2 : "AnnotationEnumLiteral::TWO",
3 : "AnnotationEnumLiteral::THREE",
}
)
AnnotationEnumLiteral::ONE constant
AnnotationEnumLiteral::THREE constant
AnnotationEnumLiteral::TWO constant

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