WheelPairs.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. use Doctrine\Common\Collections\ArrayCollection;
  3. /**
  4. * @ORM\Entity(repositoryClass="App\Repository\WheelPairsRepository")
  5. */
  6. class WheelPairs
  7. {
  8. // ...
  9. /**
  10. * @ManyToOne(targetEntity="OilStat")
  11. * @JoinColumn(name="wheelpairs_id", referencedColumnName="id")
  12. */
  13. private $oilstat;
  14. public function __construct() {
  15. $this->oilstat = new ArrayCollection();
  16. }
  17. /** @Id @Column(type="integer") */
  18. private $id;
  19. /**
  20. * @ORM\Column(type="integer")
  21. */
  22. private $token;
  23. /**
  24. * @ORM\Column(type="integer")
  25. */
  26. private $curIsset;
  27. /**
  28. * @ORM\Column(type="string")
  29. */
  30. private $data;
  31. public function getId()
  32. {
  33. return $this->id;
  34. }
  35. public function getToken()
  36. {
  37. return $this->token;
  38. }
  39. public function setToken(int $token)
  40. {
  41. $this->token = $token;
  42. return $this;
  43. }
  44. public function getCurIsset()
  45. {
  46. return $this->curIsset;
  47. }
  48. public function setCurIsset(int $curIsset)
  49. {
  50. $this->curIsset = $curIsset;
  51. return $this;
  52. }
  53. public function getData()
  54. {
  55. return $this->data;
  56. }
  57. public function setData(string $data)
  58. {
  59. $this->data = $data;
  60. return $this;
  61. }
  62. }