src/Entity/Fielpet/View/VetFormMedicamentosCustomView.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table(name="`VetFormMedicamentosCustomView`")
  6. * @ORM\Entity
  7. */
  8. class VetFormMedicamentosCustomView
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\Column(name="`vetformId`", type="integer", nullable=false)
  13. */
  14. private $vetformId;
  15. /**
  16. * @ORM\Id
  17. * @ORM\Column(name="`medicamentosCustomId`", type="integer", nullable=false)
  18. */
  19. private $medicamentosCustomId;
  20. /**
  21. * @ORM\Column(name="nombre_comercial", type="string", length=255, nullable=false)
  22. */
  23. private $nombreComercial;
  24. /**
  25. * @ORM\Column(name="`createdAt`", type="custom_datetimetz", nullable=false)
  26. */
  27. private $createdat;
  28. /**
  29. * @ORM\Column(name="`updatedAt`", type="custom_datetimetz", nullable=false)
  30. */
  31. private $updatedat;
  32. public function setFromArray(array $data): void
  33. {
  34. $this->vetformId = $data['vetformId'] ?? null;
  35. $this->medicamentosCustomId = $data['medicamentosCustomId'] ?? null;
  36. $this->nombreComercial = $data['nombre_comercial'] ?? null;
  37. }
  38. public function getVetformId(): ?int
  39. {
  40. return $this->vetformId;
  41. }
  42. public function getMedicamentosCustomId(): ?int
  43. {
  44. return $this->medicamentosCustomId;
  45. }
  46. public function getNombreComercial(): ?string
  47. {
  48. return $this->nombreComercial;
  49. }
  50. public function getCreatedat(): ?\DateTimeInterface
  51. {
  52. return $this->createdat;
  53. }
  54. public function getUpdatedat(): ?\DateTimeInterface
  55. {
  56. return $this->updatedat;
  57. }
  58. }