src/Entity/Fielpet/View/AlimentosView.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. * AlimentosView
  7. *
  8. * @ORM\Table(name="Alimentos")
  9. * @ORM\Entity
  10. */
  11. class AlimentosView
  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="Alimentos_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var string|null
  24. *
  25. * @ORM\Column(name="nombre", type="string", length=255, nullable=true)
  26. */
  27. private $nombre;
  28. /**
  29. * @var string|null
  30. *
  31. * @ORM\Column(name="marca", type="string", length=255, nullable=true)
  32. */
  33. private $marca;
  34. /**
  35. * @var float|null
  36. *
  37. * @ORM\Column(name="presentaciones", type="float", precision=10, scale=0, nullable=true)
  38. */
  39. private $presentaciones;
  40. /**
  41. * @var string|null
  42. *
  43. * @ORM\Column(name="animal", type="string", length=255, nullable=true)
  44. */
  45. private $animal;
  46. /**
  47. * @var int|null
  48. *
  49. * @ORM\Column(name="cargaEnergetica", type="integer", nullable=true)
  50. */
  51. private $cargaenergetica;
  52. /**
  53. * @var array|null
  54. *
  55. * @ORM\Column(name="tabla", type="json", nullable=true)
  56. */
  57. private $tabla;
  58. /**
  59. * @var \DateTime
  60. *
  61. * @ORM\Column(name="createdAt", type="custom_datetimetz", nullable=false)
  62. */
  63. private $createdat;
  64. /**
  65. * @var \DateTime
  66. *
  67. * @ORM\Column(name="updatedAt", type="custom_datetimetz", nullable=false)
  68. */
  69. private $updatedat;
  70. public function getId(): ?int
  71. {
  72. return $this->id;
  73. }
  74. public function getNombre(): ?string
  75. {
  76. return $this->nombre;
  77. }
  78. public function setNombre(?string $nombre): self
  79. {
  80. $this->nombre = $nombre;
  81. return $this;
  82. }
  83. public function getMarca(): ?string
  84. {
  85. return $this->marca;
  86. }
  87. public function setMarca(?string $marca): self
  88. {
  89. $this->marca = $marca;
  90. return $this;
  91. }
  92. public function getPresentaciones(): ?float
  93. {
  94. return $this->presentaciones;
  95. }
  96. public function setPresentaciones(?float $presentaciones): self
  97. {
  98. $this->presentaciones = $presentaciones;
  99. return $this;
  100. }
  101. public function getAnimal(): ?string
  102. {
  103. return $this->animal;
  104. }
  105. public function setAnimal(?string $animal): self
  106. {
  107. $this->animal = $animal;
  108. return $this;
  109. }
  110. public function getCargaenergetica(): ?int
  111. {
  112. return $this->cargaenergetica;
  113. }
  114. public function setCargaenergetica(?int $cargaenergetica): self
  115. {
  116. $this->cargaenergetica = $cargaenergetica;
  117. return $this;
  118. }
  119. public function getTabla(): ?array
  120. {
  121. return $this->tabla;
  122. }
  123. public function setTabla(?array $tabla): self
  124. {
  125. $this->tabla = $tabla;
  126. return $this;
  127. }
  128. public function getCreatedat(): ?\DateTimeInterface
  129. {
  130. return $this->createdat;
  131. }
  132. public function setCreatedat(\DateTimeInterface $createdat): self
  133. {
  134. $this->createdat = $createdat;
  135. return $this;
  136. }
  137. public function getUpdatedat(): ?\DateTimeInterface
  138. {
  139. return $this->updatedat;
  140. }
  141. public function setUpdatedat(\DateTimeInterface $updatedat): self
  142. {
  143. $this->updatedat = $updatedat;
  144. return $this;
  145. }
  146. }