src/Entity/System/OrderTax.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table(name="ps_order_tax")
  6. *
  7. * @ORM\Entity(repositoryClass="App\Repository\System\OrderTaxRepository")
  8. */
  9. class OrderTax
  10. {
  11. /**
  12. * @ORM\Id()
  13. *
  14. * @ORM\GeneratedValue()
  15. *
  16. * @ORM\Column(type="integer", name="id_order_tax")
  17. */
  18. private ?int $id = null;
  19. /**
  20. * @var Order
  21. *
  22. * @ORM\OneToOne(targetEntity="App\Entity\System\Order", inversedBy="orderTax")
  23. *
  24. * @ORM\JoinColumn(referencedColumnName="id_order", name="id_order", nullable=false)
  25. */
  26. private Order $order;
  27. /**
  28. * @ORM\Column(type="float", nullable=true, name="iva2")
  29. */
  30. private ?float $iva2 = 0;
  31. /**
  32. * @ORM\Column(type="float", scale=2, precision=10, name="iva4")
  33. */
  34. private ?float $iva4 = 0;
  35. /**
  36. * @ORM\Column(type="float", scale=2, precision=10, name="iva5")
  37. */
  38. private ?float $iva5 = 0;
  39. /**
  40. * @ORM\Column(type="float", nullable=true, name="iva7")
  41. */
  42. private ?float $iva7 = 0;
  43. /**
  44. * @ORM\Column(type="float", scale=2, precision=10, name="iva10")
  45. */
  46. private ?float $iva10 = 0;
  47. /**
  48. * @ORM\Column(type="float", scale=2, precision=10, name="iva21")
  49. */
  50. private ?float $iva21 = 0;
  51. /**
  52. * @ORM\Column(type="float", nullable=true, name="re2")
  53. */
  54. private ?float $re2 = 0;
  55. /**
  56. * @ORM\Column(type="float", scale=2, precision=10, name="re4")
  57. */
  58. private ?float $re4 = 0;
  59. /**
  60. * @ORM\Column(type="float", scale=2, precision=10, name="re5")
  61. */
  62. private ?float $re5 = 0;
  63. /**
  64. * @ORM\Column(type="float", nullable=true, name="re7")
  65. */
  66. private ?float $re7 = 0;
  67. /**
  68. * @ORM\Column(type="float", scale=2, precision=10, name="re10")
  69. */
  70. private ?float $re10 = 0;
  71. /**
  72. * @ORM\Column(type="float", scale=2, precision=10, name="re21")
  73. */
  74. private ?float $re21 = 0;
  75. /**
  76. * @return mixed
  77. */
  78. public function getId()
  79. {
  80. return $this->id;
  81. }
  82. public function setOrder(Order $order): OrderTax
  83. {
  84. $this->order = $order;
  85. return $this;
  86. }
  87. /**
  88. * @return Order
  89. */
  90. public function getOrder(): Order
  91. {
  92. return $this->order;
  93. }
  94. public function getIva2(): ?float
  95. {
  96. return $this->iva2;
  97. }
  98. public function setIva2(?float $iva2): OrderTax
  99. {
  100. $this->iva2 = $iva2;
  101. return $this;
  102. }
  103. public function getIva4(): ?float
  104. {
  105. return $this->iva4;
  106. }
  107. public function setIva4(?float $iva4): OrderTax
  108. {
  109. $this->iva4 = $iva4;
  110. return $this;
  111. }
  112. public function getIva5(): ?float
  113. {
  114. return $this->iva5;
  115. }
  116. public function setIva5(?float $iva5): OrderTax
  117. {
  118. $this->iva5 = $iva5;
  119. return $this;
  120. }
  121. public function getIva7(): ?float
  122. {
  123. return $this->iva7;
  124. }
  125. public function setIva7(?float $iva7): OrderTax
  126. {
  127. $this->iva7 = $iva7;
  128. return $this;
  129. }
  130. public function getIva10(): ?float
  131. {
  132. return $this->iva10;
  133. }
  134. public function setIva10(?float $iva10): OrderTax
  135. {
  136. $this->iva10 = $iva10;
  137. return $this;
  138. }
  139. public function getIva21(): ?float
  140. {
  141. return $this->iva21;
  142. }
  143. public function setIva21(?float $iva21): OrderTax
  144. {
  145. $this->iva21 = $iva21;
  146. return $this;
  147. }
  148. public function getRe2(): ?float
  149. {
  150. return $this->re2;
  151. }
  152. public function setRe2(?float $re2): OrderTax
  153. {
  154. $this->re2 = $re2;
  155. return $this;
  156. }
  157. public function getRe4(): ?float
  158. {
  159. return $this->re4;
  160. }
  161. public function setRe4(?float $re4): OrderTax
  162. {
  163. $this->re4 = $re4;
  164. return $this;
  165. }
  166. public function getRe5(): ?float
  167. {
  168. return $this->re5;
  169. }
  170. public function setRe5(?float $re5): OrderTax
  171. {
  172. $this->re5 = $re5;
  173. return $this;
  174. }
  175. public function getRe7(): ?float
  176. {
  177. return $this->re7;
  178. }
  179. public function setRe7(?float $re7): OrderTax
  180. {
  181. $this->re7 = $re7;
  182. return $this;
  183. }
  184. public function getRe10(): ?float
  185. {
  186. return $this->re10;
  187. }
  188. public function setRe10(?float $re10): OrderTax
  189. {
  190. $this->re10 = $re10;
  191. return $this;
  192. }
  193. public function getRe21(): ?float
  194. {
  195. return $this->re21;
  196. }
  197. public function setRe21(?float $re21): OrderTax
  198. {
  199. $this->re21 = $re21;
  200. return $this;
  201. }
  202. }