DummyClass.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace EasySwoole\DoctrineAnnotation\Tests;
  3. /**
  4. * A description of this class.
  5. *
  6. * Let's see if the parser recognizes that this @ is not really referring to an
  7. * annotation. Also make sure that @var \ is not concated to "@var\is".
  8. *
  9. * @DummyAnnotation(dummyValue="hello")
  10. */
  11. class DummyClass
  12. {
  13. /**
  14. * A nice property.
  15. *
  16. * @var mixed
  17. * @DummyAnnotation(dummyValue="fieldHello")
  18. */
  19. public $field1;
  20. /**
  21. * @var mixed;
  22. * @DummyJoinTable(name="join_table",
  23. * joinColumns={@DummyJoinColumn(name="col1", referencedColumnName="col2")},
  24. * inverseJoinColumns={
  25. * @DummyJoinColumn(name="col3", referencedColumnName="col4")
  26. * })
  27. */
  28. public $field2;
  29. /**
  30. * Gets the value of field1.
  31. *
  32. * @return mixed
  33. *
  34. * @DummyAnnotation({1,2,"three"})
  35. */
  36. public function getField1()
  37. {
  38. }
  39. /**
  40. * A parameter value with a space in it.
  41. *
  42. * @DummyAnnotation("\d{4}-[01]\d-[0-3]\d [0-2]\d:[0-5]\d:[0-5]\d")
  43. */
  44. public function getField3(): void
  45. {
  46. }
  47. }