Event.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. namespace Sortable\Fixture;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass="Gedmo\Sortable\Entity\Repository\SortableRepository")
  7. */
  8. class Event
  9. {
  10. /**
  11. * @var int
  12. *
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @var \DateTime
  20. *
  21. * @Gedmo\SortableGroup
  22. * @ORM\Column(type="datetime")
  23. */
  24. private $dateTime;
  25. /**
  26. * @var string
  27. *
  28. * @ORM\Column(type="string", length=255)
  29. */
  30. private $name;
  31. /**
  32. * @var int
  33. *
  34. * @Gedmo\SortablePosition
  35. * @ORM\Column(type="integer")
  36. */
  37. private $position;
  38. public function getId()
  39. {
  40. return $this->id;
  41. }
  42. public function setDateTime(\DateTime $date)
  43. {
  44. $this->dateTime = $date;
  45. }
  46. public function getDateTime()
  47. {
  48. return $this->dateTime;
  49. }
  50. public function setName($name)
  51. {
  52. $this->name = $name;
  53. }
  54. public function getName()
  55. {
  56. return $this->name;
  57. }
  58. public function setPosition($position)
  59. {
  60. $this->position = $position;
  61. }
  62. public function getPosition()
  63. {
  64. return $this->position;
  65. }
  66. }