ClassWithValidAnnotationTarget.php 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Doctrine\Tests\Common\Annotations\Fixtures;
  3. use Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetClass;
  4. use Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetAll;
  5. use Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetPropertyMethod;
  6. use Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetNestedAnnotation;
  7. /**
  8. * @AnnotationTargetClass("Some data")
  9. */
  10. class ClassWithValidAnnotationTarget
  11. {
  12. /**
  13. * @AnnotationTargetPropertyMethod("Some data")
  14. */
  15. public $foo;
  16. /**
  17. * @AnnotationTargetAll("Some data",name="Some name")
  18. */
  19. public $name;
  20. /**
  21. * @AnnotationTargetPropertyMethod("Some data",name="Some name")
  22. */
  23. public function someFunction()
  24. {
  25. }
  26. /**
  27. * @AnnotationTargetAll(@AnnotationTargetAnnotation)
  28. */
  29. public $nested;
  30. }