DummyClass.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace Doctrine\Tests\Common\Annotations;
  3. use Doctrine\Tests\Common\Annotations\DummyAnnotation;
  4. use Doctrine\Tests\Common\Annotations\Name;
  5. use Doctrine\Tests\Common\Annotations\DummyJoinTable;
  6. use Doctrine\Tests\Common\Annotations\DummyJoinColumn;
  7. /**
  8. * A description of this class.
  9. *
  10. * Let's see if the parser recognizes that this @ is not really referring to an
  11. * annotation. Also make sure that @var \ is not concated to "@var\is".
  12. *
  13. * @author robo
  14. * @since 2.0
  15. * @DummyAnnotation(dummyValue="hello")
  16. */
  17. class DummyClass
  18. {
  19. /**
  20. * A nice property.
  21. *
  22. * @var mixed
  23. * @DummyAnnotation(dummyValue="fieldHello")
  24. */
  25. private $field1;
  26. /**
  27. * @DummyJoinTable(name="join_table",
  28. * joinColumns={@DummyJoinColumn(name="col1", referencedColumnName="col2")},
  29. * inverseJoinColumns={
  30. * @DummyJoinColumn(name="col3", referencedColumnName="col4")
  31. * })
  32. */
  33. private $field2;
  34. /**
  35. * Gets the value of field1.
  36. *
  37. * @return mixed
  38. * @DummyAnnotation({1,2,"three"})
  39. */
  40. public function getField1()
  41. {
  42. }
  43. }