EntityCOnlineConnected.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityCOnlineConnected
  5. *
  6. * @Table(name="c_online_connected")
  7. * @Entity
  8. */
  9. class EntityCOnlineConnected
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="NONE")
  17. */
  18. private $cId;
  19. /**
  20. * @var integer
  21. *
  22. * @Column(name="user_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. * @Id
  24. * @GeneratedValue(strategy="NONE")
  25. */
  26. private $userId;
  27. /**
  28. * @var \DateTime
  29. *
  30. * @Column(name="last_connection", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  31. */
  32. private $lastConnection;
  33. /**
  34. * Set cId
  35. *
  36. * @param integer $cId
  37. * @return EntityCOnlineConnected
  38. */
  39. public function setCId($cId)
  40. {
  41. $this->cId = $cId;
  42. return $this;
  43. }
  44. /**
  45. * Get cId
  46. *
  47. * @return integer
  48. */
  49. public function getCId()
  50. {
  51. return $this->cId;
  52. }
  53. /**
  54. * Set userId
  55. *
  56. * @param integer $userId
  57. * @return EntityCOnlineConnected
  58. */
  59. public function setUserId($userId)
  60. {
  61. $this->userId = $userId;
  62. return $this;
  63. }
  64. /**
  65. * Get userId
  66. *
  67. * @return integer
  68. */
  69. public function getUserId()
  70. {
  71. return $this->userId;
  72. }
  73. /**
  74. * Set lastConnection
  75. *
  76. * @param \DateTime $lastConnection
  77. * @return EntityCOnlineConnected
  78. */
  79. public function setLastConnection($lastConnection)
  80. {
  81. $this->lastConnection = $lastConnection;
  82. return $this;
  83. }
  84. /**
  85. * Get lastConnection
  86. *
  87. * @return \DateTime
  88. */
  89. public function getLastConnection()
  90. {
  91. return $this->lastConnection;
  92. }
  93. }