src/Entity/Fielpet/View/LibretavacunacionView.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. * LibretavacunacionView
  7. *
  8. * @ORM\Table(name="LibretaVacunacion", indexes={@ORM\Index(name="IDX_E88FE7B52066F5", columns={"siniestroId"})})
  9. * @ORM\Entity
  10. */
  11. class LibretavacunacionView
  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="LibretaVacunacion_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var string|null
  24. *
  25. * @ORM\Column(name="file", type="string", length=255, nullable=true)
  26. */
  27. private $file;
  28. /**
  29. * @var \DateTime
  30. *
  31. * @ORM\Column(name="createdAt", type="custom_datetimetz", nullable=false)
  32. */
  33. private $createdat;
  34. /**
  35. * @var \DateTime
  36. *
  37. * @ORM\Column(name="updatedAt", type="custom_datetimetz", nullable=false)
  38. */
  39. private $updatedat;
  40. /**
  41. * @var \SiniestroView
  42. *
  43. * @ORM\ManyToOne(targetEntity="SiniestroView")
  44. * @ORM\JoinColumns({
  45. * @ORM\JoinColumn(name="siniestroId", referencedColumnName="id")
  46. * })
  47. */
  48. private $siniestroid;
  49. public function getId(): ?int
  50. {
  51. return $this->id;
  52. }
  53. public function getFile(): ?string
  54. {
  55. return $this->file;
  56. }
  57. public function setFile(?string $file): self
  58. {
  59. $this->file = $file;
  60. return $this;
  61. }
  62. public function getCreatedat(): ?\DateTimeInterface
  63. {
  64. return $this->createdat;
  65. }
  66. public function setCreatedat(\DateTimeInterface $createdat): self
  67. {
  68. $this->createdat = $createdat;
  69. return $this;
  70. }
  71. public function getUpdatedat(): ?\DateTimeInterface
  72. {
  73. return $this->updatedat;
  74. }
  75. public function setUpdatedat(\DateTimeInterface $updatedat): self
  76. {
  77. $this->updatedat = $updatedat;
  78. return $this;
  79. }
  80. public function getSiniestroid(): ?SiniestroView
  81. {
  82. return $this->siniestroid;
  83. }
  84. public function setSiniestroid(?SiniestroView $siniestroid): self
  85. {
  86. $this->siniestroid = $siniestroid;
  87. return $this;
  88. }
  89. }