ClassWithAnnotationWithVarType.php 808 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace EasySwoole\DoctrineAnnotation\Tests\Fixtures;
  3. use EasySwoole\DoctrineAnnotation\Tests\Fixtures\AnnotationTargetAll;
  4. use EasySwoole\DoctrineAnnotation\Tests\Fixtures\AnnotationTargetAnnotation;
  5. use EasySwoole\DoctrineAnnotation\Tests\Fixtures\AnnotationWithVarType;
  6. class ClassWithAnnotationWithVarType
  7. {
  8. /**
  9. * @var mixed
  10. * @AnnotationWithVarType(string = "String Value")
  11. */
  12. public $foo;
  13. /**
  14. * @AnnotationWithVarType(annotation = @AnnotationTargetAll)
  15. */
  16. public function bar(): void
  17. {
  18. }
  19. /**
  20. * @var mixed
  21. * @AnnotationWithVarType(string = 123)
  22. */
  23. public $invalidProperty;
  24. /**
  25. * @AnnotationWithVarType(annotation = @AnnotationTargetAnnotation)
  26. */
  27. public function invalidMethod(): void
  28. {
  29. }
  30. }