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

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. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. /**
  8. * MascotasView
  9. *
  10. * @ORM\Table(name="mascotas_view", indexes={@ORM\Index(name="IDX_2C08604F896A2938", columns={"datosPersonaId"})})
  11. * @ORM\Entity
  12. */
  13. class MascotasView
  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="Mascotas_id_seq", allocationSize=1, initialValue=1)
  22. */
  23. private $id;
  24. /**
  25. * @var string|null
  26. *
  27. * @ORM\Column(name="codigo", type="string", length=255, nullable=true)
  28. */
  29. private $codigo;
  30. /**
  31. * @var string|null
  32. *
  33. * @ORM\Column(name="nombre", type="string", length=255, nullable=true)
  34. */
  35. private $nombre;
  36. /**
  37. * @var string|null
  38. *
  39. * @ORM\Column(name="raza", type="string", length=255, nullable=true)
  40. */
  41. private $raza;
  42. /**
  43. * @var string|null
  44. *
  45. * @ORM\Column(name="color", type="string", length=255, nullable=true)
  46. */
  47. private $color;
  48. /**
  49. * @var string|null
  50. *
  51. * @ORM\Column(name="descripcion", type="string", length=255, nullable=true)
  52. */
  53. private $descripcion;
  54. /**
  55. * @var bool
  56. *
  57. * @ORM\Column(name="activo", type="boolean", nullable=false)
  58. */
  59. private bool $activo = true;
  60. /**
  61. * @var string|null
  62. *
  63. * @ORM\Column(name="animal", type="string", length=255, nullable=true)
  64. */
  65. private $animal;
  66. /**
  67. * @var string|null
  68. *
  69. * @ORM\Column(name="sexo", type="string", length=255, nullable=true)
  70. */
  71. private $sexo;
  72. /**
  73. * @var \DateTime|null
  74. *
  75. * @ORM\Column(name="fecha_nacimiento", type="custom_datetimetz", nullable=true)
  76. */
  77. private $fechaNacimiento;
  78. /**
  79. * @var \DateTime
  80. *
  81. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  82. */
  83. private $createdAt;
  84. /**
  85. * @var \DateTime
  86. *
  87. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  88. */
  89. private $updatedAt;
  90. /**
  91. * @var \DatosPersonasView
  92. *
  93. * @ORM\ManyToOne(targetEntity="DatosPersonasView")
  94. * @ORM\JoinColumns({
  95. * @ORM\JoinColumn(name="datos_persona_id", referencedColumnName="id")
  96. * })
  97. */
  98. private $datosPersonaId;
  99. /**
  100. * @ORM\OneToMany(targetEntity="SolicitudesView", mappedBy="mascotaId", cascade={"persist"})
  101. **/
  102. private $solicitudes;
  103. public function __construct()
  104. {
  105. $this->solicitudes = new \Doctrine\Common\Collections\ArrayCollection();
  106. }
  107. public function getId(): ?int
  108. {
  109. return $this->id;
  110. }
  111. public function getCodigo(): ?string
  112. {
  113. return $this->codigo;
  114. }
  115. public function setCodigo(?string $codigo): static
  116. {
  117. $this->codigo = $codigo;
  118. return $this;
  119. }
  120. public function getNombre(): ?string
  121. {
  122. return $this->nombre;
  123. }
  124. public function setNombre(?string $nombre): static
  125. {
  126. $this->nombre = $nombre;
  127. return $this;
  128. }
  129. public function getRaza(): ?string
  130. {
  131. return $this->raza;
  132. }
  133. public function setRaza(?string $raza): static
  134. {
  135. $this->raza = $raza;
  136. return $this;
  137. }
  138. public function getColor(): ?string
  139. {
  140. return $this->color;
  141. }
  142. public function setColor(?string $color): static
  143. {
  144. $this->color = $color;
  145. return $this;
  146. }
  147. public function getDescripcion(): ?string
  148. {
  149. return $this->descripcion;
  150. }
  151. public function setDescripcion(?string $descripcion): static
  152. {
  153. $this->descripcion = $descripcion;
  154. return $this;
  155. }
  156. public function isActivo(): bool
  157. {
  158. return $this->activo;
  159. }
  160. public function setActivo(bool $activo): static
  161. {
  162. $this->activo = $activo;
  163. return $this;
  164. }
  165. public function getAnimal(): ?string
  166. {
  167. return $this->animal;
  168. }
  169. public function setAnimal(?string $animal): static
  170. {
  171. $this->animal = $animal;
  172. return $this;
  173. }
  174. public function getSexo(): ?string
  175. {
  176. return $this->sexo;
  177. }
  178. public function setSexo(?string $sexo): static
  179. {
  180. $this->sexo = $sexo;
  181. return $this;
  182. }
  183. public function getFechaNacimiento(): ?\DateTimeInterface
  184. {
  185. return $this->fechaNacimiento;
  186. }
  187. public function setFechaNacimiento(?\DateTimeInterface $fechaNacimiento): static
  188. {
  189. $this->fechaNacimiento = $fechaNacimiento;
  190. return $this;
  191. }
  192. public function getCreatedAt(): ?\DateTimeInterface
  193. {
  194. return $this->createdAt;
  195. }
  196. public function setCreatedAt(\DateTimeInterface $createdAt): static
  197. {
  198. $this->createdAt = $createdAt;
  199. return $this;
  200. }
  201. public function getUpdatedAt(): ?\DateTimeInterface
  202. {
  203. return $this->updatedAt;
  204. }
  205. public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  206. {
  207. $this->updatedAt = $updatedAt;
  208. return $this;
  209. }
  210. public function getDatosPersonaId(): ?DatospersonasView
  211. {
  212. return $this->datosPersonaId;
  213. }
  214. public function setDatosPersonaId(?DatospersonasView $datosPersonaId): static
  215. {
  216. $this->datosPersonaId = $datosPersonaId;
  217. return $this;
  218. }
  219. public function getSolicitudes(): Collection
  220. {
  221. return $this->solicitudes;
  222. }
  223. public function setSolicitudes(Collection $solicitudes): void
  224. {
  225. $this->solicitudes = $solicitudes;
  226. }
  227. }