class ClassWithValidAnnotationTarget

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\ClassWithValidAnnotationTarget
  2. 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\ClassWithValidAnnotationTarget
  3. 11.x 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 13

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

Title Sort descending Modifiers Object type Summary
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")

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