You are here

class ClassWithValidAnnotationTarget in Drupal 10

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

Plugin annotation

@AnnotationTargetClass("Some data");

Hierarchy

Expanded class hierarchy of ClassWithValidAnnotationTarget

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php, line 12

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures
View source
class ClassWithValidAnnotationTarget {

  /**
   * @AnnotationTargetPropertyMethod("Some data")
   */
  public $foo;

  /**
   * @AnnotationTargetAll("Some data",name="Some name")
   */
  public $name;

  /**
   * @AnnotationTargetPropertyMethod("Some data",name="Some name")
   */
  public function someFunction() {
  }

  /**
   * @AnnotationTargetAll(@AnnotationTargetAnnotation)
   */
  public $nested;

}

Members

Namesort descending Modifiers Type Description Overrides
ClassWithValidAnnotationTarget::$foo public property Plugin annotation @AnnotationTargetPropertyMethod("Some data");
ClassWithValidAnnotationTarget::$name public property Plugin annotation @AnnotationTargetAll("Some data",name="Some name")
ClassWithValidAnnotationTarget::$nested public property Plugin annotation @AnnotationTargetAll(@AnnotationTargetAnnotation);
ClassWithValidAnnotationTarget::someFunction public function Plugin annotation @AnnotationTargetPropertyMethod("Some data",name="Some name")