src/Entity/UserStation.php line 18

Open in your IDE?
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: parcel
  5. * Date: 8/24/18
  6. * Time: 8:38 PM
  7. */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11. * @ORM\Entity
  12. * @ORM\Table(name="user_station")
  13. */
  14. class UserStation {
  15. /**
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. * @ORM\Column(type="integer")
  19. */
  20. private $id;
  21. /**
  22. * @var User
  23. *
  24. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  25. * @ORM\JoinColumns({
  26. * @ORM\JoinColumn(name="user", referencedColumnName="id")
  27. * })
  28. */
  29. private $user;
  30. /**
  31. * @var Station
  32. *
  33. * @ORM\ManyToOne(targetEntity="App\Entity\Station")
  34. * @ORM\JoinColumns({
  35. * @ORM\JoinColumn(name="station_id", referencedColumnName="id")
  36. * })
  37. */
  38. private $station;
  39. /**
  40. * @ORM\Column(type="boolean")
  41. */
  42. private $isActive;
  43. /**
  44. * @ORM\Column(type="datetime")
  45. */
  46. private $createdAt;
  47. /**
  48. * @return mixed
  49. */
  50. public function getId()
  51. {
  52. return $this->id;
  53. }
  54. /**
  55. * @param mixed $id
  56. */
  57. public function setId($id)
  58. {
  59. $this->id = $id;
  60. }
  61. /**
  62. * @return User
  63. */
  64. public function getUser()
  65. {
  66. return $this->user;
  67. }
  68. /**
  69. * @param User $user
  70. */
  71. public function setUser($user)
  72. {
  73. $this->user = $user;
  74. }
  75. /**
  76. * @return Station
  77. */
  78. public function getStation()
  79. {
  80. return $this->station;
  81. }
  82. /**
  83. * @param Station $station
  84. */
  85. public function setStation($station)
  86. {
  87. $this->station = $station;
  88. }
  89. /**
  90. * @return mixed
  91. */
  92. public function getisActive()
  93. {
  94. return $this->isActive;
  95. }
  96. /**
  97. * @param mixed $isActive
  98. */
  99. public function setIsActive($isActive)
  100. {
  101. $this->isActive = $isActive;
  102. }
  103. /**
  104. * @return mixed
  105. */
  106. public function getCreatedAt()
  107. {
  108. return $this->createdAt;
  109. }
  110. /**
  111. * @param mixed $createdAt
  112. */
  113. public function setCreatedAt($createdAt)
  114. {
  115. $this->createdAt = $createdAt;
  116. }
  117. }