src/Entity/System/FuturePack.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Repository\System\FuturePackRepository")
  6. *
  7. * @ORM\Table(name="ps_future_pack", indexes={
  8. *
  9. * @ORM\Index(name="ps_future_pack_ps_pack_id_pack_fk", columns={"id_pack"})
  10. * })
  11. */
  12. class FuturePack
  13. {
  14. /**
  15. * @var int
  16. *
  17. * @ORM\Id
  18. *
  19. * @ORM\GeneratedValue(strategy="AUTO")
  20. *
  21. * @ORM\Column(type="integer", name="id_future_pack")
  22. */
  23. private $id;
  24. /**
  25. * @var Customer|null
  26. *
  27. * @ORM\ManyToOne(targetEntity="Customer", inversedBy="futurePacks")
  28. *
  29. * @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer", nullable=true)
  30. */
  31. private $customer;
  32. /**
  33. * @var int|null
  34. *
  35. * @ORM\Column(type="integer", nullable=true)
  36. */
  37. private $idPack;
  38. /**
  39. * @var \DateTime|null
  40. *
  41. * @ORM\Column(type="date", nullable=true)
  42. */
  43. private $dateCsv;
  44. /**
  45. * @var bool|null
  46. *
  47. * @ORM\Column(type="boolean", nullable=true, options={"default":0})
  48. */
  49. private $active;
  50. public function __construct()
  51. {
  52. $this->active = false;
  53. }
  54. /**
  55. * @return int
  56. */
  57. public function getId(): int
  58. {
  59. return $this->id;
  60. }
  61. /**
  62. * @param int $id
  63. *
  64. * @return FuturePack
  65. */
  66. public function setId(int $id): FuturePack
  67. {
  68. $this->id = $id;
  69. return $this;
  70. }
  71. /**
  72. * @return Customer|null
  73. */
  74. public function getCustomer(): ?Customer
  75. {
  76. return $this->customer;
  77. }
  78. /**
  79. * @param Customer|null $customer
  80. *
  81. * @return FuturePack
  82. */
  83. public function setCustomer(?Customer $customer): FuturePack
  84. {
  85. $this->customer = $customer;
  86. return $this;
  87. }
  88. /**
  89. * @return int|null
  90. */
  91. public function getIdPack(): ?int
  92. {
  93. return $this->idPack;
  94. }
  95. /**
  96. * @param int|null $idPack
  97. *
  98. * @return FuturePack
  99. */
  100. public function setIdPack(?int $idPack): FuturePack
  101. {
  102. $this->idPack = $idPack;
  103. return $this;
  104. }
  105. /**
  106. * @return \DateTime|null
  107. */
  108. public function getDateCsv(): ?\DateTime
  109. {
  110. return $this->dateCsv;
  111. }
  112. /**
  113. * @param \DateTime|null $dateCsv
  114. *
  115. * @return FuturePack
  116. */
  117. public function setDateCsv(?\DateTime $dateCsv): FuturePack
  118. {
  119. $this->dateCsv = $dateCsv;
  120. return $this;
  121. }
  122. /**
  123. * @return bool|null
  124. */
  125. public function isActive(): ?bool
  126. {
  127. return $this->active;
  128. }
  129. /**
  130. * @param bool|null $active
  131. *
  132. * @return FuturePack
  133. */
  134. public function setActive(?bool $active): FuturePack
  135. {
  136. $this->active = $active;
  137. return $this;
  138. }
  139. }