src/Entity/Fielpet/View/PracticaMascotaView.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * PracticaMascotaView
  9. *
  10. * @ORM\Table(name="practica_mascota_view", indexes={@ORM\Index(name="IDX_87BC55044F531111", columns={"vetFormId"}), @ORM\Index(name="IDX_87BC550452066F5", columns={"siniestroId"}), @ORM\Index(name="IDX_87BC550459EDB958", columns={"vetFormIndicador"})})
  11. * @ORM\Entity
  12. */
  13. class PracticaMascotaView
  14. {
  15. /**
  16. * @var int
  17. *
  18. * @ORM\Column(name="id", type="integer", nullable=false)
  19. * @ORM\Id
  20. * @ORM\GeneratedValue(strategy="SEQUENCE")
  21. * @ORM\SequenceGenerator(sequenceName="PracticaMascota_id_seq", allocationSize=1, initialValue=1)
  22. */
  23. private $id;
  24. /**
  25. * @var string|null
  26. *
  27. * @ORM\Column(name="descripcion_inicial", type="string", length=255, nullable=true)
  28. */
  29. private $descripcionInicial;
  30. /**
  31. * @var string|null
  32. *
  33. * @ORM\Column(name="tipo_practica", type="string", length=255, nullable=true)
  34. */
  35. private $tipoPractica;
  36. /**
  37. * @var string|null
  38. *
  39. * @ORM\Column(name="descripcion_practica", type="string", length=255, nullable=true)
  40. */
  41. private $descripcionPractica;
  42. /**
  43. * @var float|null
  44. *
  45. * @ORM\Column(name="costo", type="float", precision=10, scale=0, nullable=true)
  46. */
  47. private $costo;
  48. /**
  49. * @var string|null
  50. *
  51. * @ORM\Column(name="estado", type="string", length=255, nullable=true)
  52. */
  53. private $estado;
  54. /**
  55. * @var \DateTime|null
  56. *
  57. * @ORM\Column(name="created_at", type="datetime", nullable=true)
  58. */
  59. private $createdAt;
  60. /**
  61. * @var \DateTime|null
  62. *
  63. * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  64. */
  65. private $updatedAt;
  66. /**
  67. * @var \VetFormView
  68. *
  69. * @ORM\ManyToOne(targetEntity="VetFormview")
  70. * @ORM\JoinColumns({
  71. * @ORM\JoinColumn(name="vetform_id", referencedColumnName="id")
  72. * })
  73. */
  74. private $vetFormId;
  75. /**
  76. * @var \Siniestro
  77. *
  78. * @ORM\ManyToOne(targetEntity="SiniestroView")
  79. * @ORM\JoinColumns({
  80. * @ORM\JoinColumn(name="siniestro_id", referencedColumnName="id")
  81. * })
  82. */
  83. private $siniestroId;
  84. /**
  85. * @var \VetFormview
  86. *
  87. * @ORM\ManyToOne(targetEntity="VetFormView")
  88. * @ORM\JoinColumns({
  89. * @ORM\JoinColumn(name="vetform_indicador", referencedColumnName="id")
  90. * })
  91. */
  92. private $vetformIndicador;
  93. /**
  94. * @ORM\OneToMany(targetEntity="EventosSubVetformView", mappedBy="practicaMascotaId", cascade={"persist"})
  95. **/
  96. private $eventosSubVetform;
  97. public function __construct()
  98. {
  99. $this->eventosSubVetform = new \Doctrine\Common\Collections\ArrayCollection();
  100. }
  101. public function getId(): ?int
  102. {
  103. return $this->id;
  104. }
  105. public function getDescripcionInicial(): ?string
  106. {
  107. return $this->descripcionInicial;
  108. }
  109. public function setDescripcionInicial(?string $descripcionInicial): static
  110. {
  111. $this->descripcionInicial = $descripcionInicial;
  112. return $this;
  113. }
  114. public function getTipoPractica(): ?string
  115. {
  116. return $this->tipoPractica;
  117. }
  118. public function setTipoPractica(?string $tipoPractica): static
  119. {
  120. $this->tipoPractica = $tipoPractica;
  121. return $this;
  122. }
  123. public function getDescripcionPractica(): ?string
  124. {
  125. return $this->descripcionPractica;
  126. }
  127. public function setDescripcionPractica(?string $descripcionPractica): static
  128. {
  129. $this->descripcionPractica = $descripcionPractica;
  130. return $this;
  131. }
  132. public function getCosto(): ?float
  133. {
  134. return $this->costo;
  135. }
  136. public function setCosto(?float $costo): static
  137. {
  138. $this->costo = $costo;
  139. return $this;
  140. }
  141. public function getEstado(): ?string
  142. {
  143. return $this->estado;
  144. }
  145. public function setEstado(?string $estado): static
  146. {
  147. $this->estado = $estado;
  148. return $this;
  149. }
  150. public function getCreatedAt(): ?\DateTime
  151. {
  152. return $this->createdAt;
  153. }
  154. public function setCreatedAt(?\DateTime $createdAt): static
  155. {
  156. $this->createdAt = $createdAt;
  157. return $this;
  158. }
  159. public function getUpdatedAt(): ?\DateTime
  160. {
  161. return $this->updatedAt;
  162. }
  163. public function setUpdatedAt(?\DateTime $updatedAt): static
  164. {
  165. $this->updatedAt = $updatedAt;
  166. return $this;
  167. }
  168. public function getVetformid(): ?VetFormView
  169. {
  170. return $this->vetFormId;
  171. }
  172. public function setVetFormId(?VetFormview $vetFormId): static
  173. {
  174. $this->vetFormId = $vetFormId;
  175. return $this;
  176. }
  177. public function getSiniestroid(): ?SiniestroView
  178. {
  179. return $this->siniestroId;
  180. }
  181. public function setSiniestroId(?SiniestroView $siniestroId): static
  182. {
  183. $this->siniestroId = $siniestroId;
  184. return $this;
  185. }
  186. public function getVetformIndicador(): ?VetFormView
  187. {
  188. return $this->vetformIndicador;
  189. }
  190. public function setVetformIndicador(?VetFormView $vetformIndicador): static
  191. {
  192. $this->vetformIndicador = $vetformIndicador;
  193. return $this;
  194. }
  195. /**
  196. * @return Collection<int, EventosSubVetformView>
  197. */
  198. public function getEventosSubVetform(): Collection
  199. {
  200. return $this->eventosSubVetform;
  201. }
  202. public function addEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  203. {
  204. if (!$this->eventosSubVetform->contains($eventosSubVetform)) {
  205. $this->eventosSubVetform->add($eventosSubVetform);
  206. $eventosSubVetform->setPracticaMascotaId($this);
  207. }
  208. return $this;
  209. }
  210. public function removeEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  211. {
  212. if ($this->eventosSubVetform->removeElement($eventosSubVetform)) {
  213. // set the owning side to null (unless already changed)
  214. if ($eventosSubVetform->getPracticaMascotaId() === $this) {
  215. $eventosSubVetform->setPracticaMascotaId(null);
  216. }
  217. }
  218. return $this;
  219. }
  220. }