EventArchive.php 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. namespace Muzich\CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6. * EventArchive contient l'archive des événement passés nécéssaire pour des
  7. * calculs.
  8. *
  9. * @ORM\Entity
  10. * @ORM\Table(name="event_archive")
  11. * @ORM\Entity(repositoryClass="Muzich\CoreBundle\Repository\EventArchiveRepository")
  12. *
  13. */
  14. class EventArchive
  15. {
  16. const PROP_TAGS_ELEMENT_ACCEPTED = "pro.tagel.ac";
  17. /**
  18. * @ORM\Id
  19. * @ORM\Column(type="integer")
  20. * @ORM\GeneratedValue(strategy="AUTO")
  21. * @var type int
  22. */
  23. protected $id;
  24. /**
  25. * Type (constitué de la valeur d'une des constantes d'Event)
  26. *
  27. * @ORM\Column(type = "string", length = 12)
  28. * @var type string
  29. */
  30. protected $type;
  31. /**
  32. * Propriétaire de l'archive d'event
  33. *
  34. * @ORM\ManyToOne(targetEntity="User", inversedBy="events")
  35. * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  36. */
  37. protected $user;
  38. /**
  39. * Compteur de fois ou l'évnènement c'est produit
  40. *
  41. * @ORM\Column(type="integer", nullable=true)
  42. * @var int
  43. */
  44. protected $count;
  45. /*
  46. *
  47. * getters / setters
  48. *
  49. */
  50. public function getId()
  51. {
  52. return $this->id;
  53. }
  54. public function getCount()
  55. {
  56. return $this->count;
  57. }
  58. public function setCount($count)
  59. {
  60. $this->count = $count;
  61. }
  62. public function getType()
  63. {
  64. return $this->type;
  65. }
  66. public function setType($type)
  67. {
  68. $this->type = $type;
  69. }
  70. public function getUser()
  71. {
  72. return $this->user;
  73. }
  74. public function setUser($user)
  75. {
  76. $this->user = $user;
  77. }
  78. /*
  79. * other methods
  80. *
  81. */
  82. }