ClassWithValidAnnotationTarget.php 752 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace EasySwoole\DoctrineAnnotation\Tests\Fixtures;
  3. use EasySwoole\DoctrineAnnotation\Tests\Fixtures\AnnotationTargetAll;
  4. use EasySwoole\DoctrineAnnotation\Tests\Fixtures\AnnotationTargetClass;
  5. use EasySwoole\DoctrineAnnotation\Tests\Fixtures\AnnotationTargetPropertyMethod;
  6. /**
  7. * @AnnotationTargetClass("Some data")
  8. */
  9. class ClassWithValidAnnotationTarget
  10. {
  11. /** @AnnotationTargetPropertyMethod("Some data") */
  12. public $foo;
  13. /** @AnnotationTargetAll("Some data",name="Some name") */
  14. public $name;
  15. /**
  16. * @AnnotationTargetPropertyMethod("Some data",name="Some name")
  17. */
  18. public function someFunction(): void
  19. {
  20. }
  21. /** @AnnotationTargetAll(@AnnotationTargetAnnotation) */
  22. public $nested;
  23. }