src/Entity/Fielpet/View/StockalimentoView.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * StockalimentoView
  7. *
  8. * @ORM\Table(name="StockAlimento", uniqueConstraints={@ORM\UniqueConstraint(name="only_one_alimento_type_per_user", columns={"alimentoId", "usuarioId"})}, indexes={@ORM\Index(name="IDX_84254DEE41AD59A1", columns={"alimentoId"}), @ORM\Index(name="IDX_84254DEEBF7FE938", columns={"usuarioId"}), @ORM\Index(name="IDX_84254DEEFB34125D", columns={"eventoId"})})
  9. * @ORM\Entity
  10. */
  11. class StockalimentoView
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="id", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="SEQUENCE")
  19. * @ORM\SequenceGenerator(sequenceName="StockAlimento_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var float|null
  24. *
  25. * @ORM\Column(name="total", type="float", precision=10, scale=0, nullable=true)
  26. */
  27. private $total;
  28. /**
  29. * @var float|null
  30. *
  31. * @ORM\Column(name="current", type="float", precision=10, scale=0, nullable=true)
  32. */
  33. private $current;
  34. /**
  35. * @var \DateTime|null
  36. *
  37. * @ORM\Column(name="terminaEl", type="custom_datetimetz", nullable=true)
  38. */
  39. private $terminael;
  40. /**
  41. * @var bool|null
  42. *
  43. * @ORM\Column(name="default", type="boolean", nullable=true)
  44. */
  45. private $default = false;
  46. /**
  47. * @var \DateTime
  48. *
  49. * @ORM\Column(name="createdAt", type="custom_datetimetz", nullable=false)
  50. */
  51. private $createdat;
  52. /**
  53. * @var \DateTime
  54. *
  55. * @ORM\Column(name="updatedAt", type="custom_datetimetz", nullable=false)
  56. */
  57. private $updatedat;
  58. /**
  59. * @var int|null
  60. *
  61. * @ORM\Column(name="duracionAproximada", type="integer", nullable=true)
  62. */
  63. private $duracionaproximada;
  64. /**
  65. * @var \DateTime|null
  66. *
  67. * @ORM\Column(name="compradoEl", type="custom_datetimetz", nullable=true)
  68. */
  69. private $compradoel;
  70. /**
  71. * @var string|null
  72. *
  73. * @ORM\Column(name="nombrePetShop", type="string", length=255, nullable=true)
  74. */
  75. private $nombrepetshop;
  76. /**
  77. * @var string|null
  78. *
  79. * @ORM\Column(name="modalidadCompra", type="string", length=255, nullable=true)
  80. */
  81. private $modalidadcompra;
  82. /**
  83. * @var AlimentosView
  84. *
  85. * @ORM\ManyToOne(targetEntity="AlimentosView")
  86. * @ORM\JoinColumns({
  87. * @ORM\JoinColumn(name="alimentoId", referencedColumnName="id")
  88. * })
  89. */
  90. private $alimentoid;
  91. /**
  92. * @var UsuariosView
  93. *
  94. * @ORM\ManyToOne(targetEntity="UsuariosView")
  95. * @ORM\JoinColumns({
  96. * @ORM\JoinColumn(name="usuarioId", referencedColumnName="id")
  97. * })
  98. */
  99. private $usuarioid;
  100. /**
  101. * @var EventosView
  102. *
  103. * @ORM\ManyToOne(targetEntity="EventosView")
  104. * @ORM\JoinColumns({
  105. * @ORM\JoinColumn(name="eventoId", referencedColumnName="id")
  106. * })
  107. */
  108. private $eventoid;
  109. public function getId(): ?int
  110. {
  111. return $this->id;
  112. }
  113. public function getTotal(): ?float
  114. {
  115. return $this->total;
  116. }
  117. public function setTotal(?float $total): self
  118. {
  119. $this->total = $total;
  120. return $this;
  121. }
  122. public function getCurrent(): ?float
  123. {
  124. return $this->current;
  125. }
  126. public function setCurrent(?float $current): self
  127. {
  128. $this->current = $current;
  129. return $this;
  130. }
  131. public function getTerminael(): ?\DateTimeInterface
  132. {
  133. return $this->terminael;
  134. }
  135. public function setTerminael(?\DateTimeInterface $terminael): self
  136. {
  137. $this->terminael = $terminael;
  138. return $this;
  139. }
  140. public function getDefault(): ?bool
  141. {
  142. return $this->default;
  143. }
  144. public function setDefault(?bool $default): self
  145. {
  146. $this->default = $default;
  147. return $this;
  148. }
  149. public function getCreatedat(): ?\DateTimeInterface
  150. {
  151. return $this->createdat;
  152. }
  153. public function setCreatedat(\DateTimeInterface $createdat): self
  154. {
  155. $this->createdat = $createdat;
  156. return $this;
  157. }
  158. public function getUpdatedat(): ?\DateTimeInterface
  159. {
  160. return $this->updatedat;
  161. }
  162. public function setUpdatedat(\DateTimeInterface $updatedat): self
  163. {
  164. $this->updatedat = $updatedat;
  165. return $this;
  166. }
  167. public function getDuracionaproximada(): ?int
  168. {
  169. return $this->duracionaproximada;
  170. }
  171. public function setDuracionaproximada(?int $duracionaproximada): self
  172. {
  173. $this->duracionaproximada = $duracionaproximada;
  174. return $this;
  175. }
  176. public function getCompradoel(): ?\DateTimeInterface
  177. {
  178. return $this->compradoel;
  179. }
  180. public function setCompradoel(?\DateTimeInterface $compradoel): self
  181. {
  182. $this->compradoel = $compradoel;
  183. return $this;
  184. }
  185. public function getNombrepetshop(): ?string
  186. {
  187. return $this->nombrepetshop;
  188. }
  189. public function setNombrepetshop(?string $nombrepetshop): self
  190. {
  191. $this->nombrepetshop = $nombrepetshop;
  192. return $this;
  193. }
  194. public function getModalidadcompra(): ?string
  195. {
  196. return $this->modalidadcompra;
  197. }
  198. public function setModalidadcompra(?string $modalidadcompra): self
  199. {
  200. $this->modalidadcompra = $modalidadcompra;
  201. return $this;
  202. }
  203. public function getAlimentoid(): ?AlimentosView
  204. {
  205. return $this->alimentoid;
  206. }
  207. public function setAlimentoid(?AlimentosView $alimentoid): self
  208. {
  209. $this->alimentoid = $alimentoid;
  210. return $this;
  211. }
  212. public function getUsuarioid(): ?UsuariosView
  213. {
  214. return $this->usuarioid;
  215. }
  216. public function setUsuarioid(?UsuariosView $usuarioid): self
  217. {
  218. $this->usuarioid = $usuarioid;
  219. return $this;
  220. }
  221. public function getEventoid(): ?EventosView
  222. {
  223. return $this->eventoid;
  224. }
  225. public function setEventoid(?EventosView $eventoid): self
  226. {
  227. $this->eventoid = $eventoid;
  228. return $this;
  229. }
  230. public function isDefault(): ?bool
  231. {
  232. return $this->default;
  233. }
  234. }