src/Entity/Fielpet/View/EnfermedadesView.php line 14

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. * EnfermedadesView
  7. *
  8. * @ORM\Table(name="enfermedades_view")
  9. * @ORM\Entity
  10. * @ORM\Entity(repositoryClass="App\Repository\Fielpet\View\EnfermedadesViewRepository")
  11. */
  12. class EnfermedadesView
  13. {
  14. /**
  15. * @var int
  16. *
  17. * @ORM\Column(name="id", type="integer", nullable=false)
  18. * @ORM\Id
  19. * @ORM\GeneratedValue(strategy="SEQUENCE")
  20. * @ORM\SequenceGenerator(sequenceName="Enfermedades_id_seq", allocationSize=1, initialValue=1)
  21. */
  22. private $id;
  23. /**
  24. * @var string
  25. *
  26. * @ORM\Column(name="nombre", type="string", length=255, nullable=false)
  27. */
  28. private $nombre;
  29. /**
  30. * @var string|null
  31. *
  32. * @ORM\Column(name="animal", type="string", length=255, nullable=true)
  33. */
  34. private $animal;
  35. /**
  36. * @var bool|null
  37. *
  38. * @ORM\Column(name="is_active", type="boolean", nullable=true)
  39. */
  40. private $isActive = false;
  41. /**
  42. * @var \DateTime
  43. *
  44. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  45. */
  46. private $createdAt;
  47. /**
  48. * @var \DateTime
  49. *
  50. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  51. */
  52. private $updatedAt;
  53. public function __toString(){
  54. return $this->nombre;
  55. }
  56. public function getId(): ?int
  57. {
  58. return $this->id;
  59. }
  60. public function getNombre(): ?string
  61. {
  62. return $this->nombre;
  63. }
  64. public function setNombre(string $nombre): self
  65. {
  66. $this->nombre = $nombre;
  67. return $this;
  68. }
  69. public function getAnimal(): ?string
  70. {
  71. return $this->animal;
  72. }
  73. public function setAnimal(?string $animal): self
  74. {
  75. $this->animal = $animal;
  76. return $this;
  77. }
  78. public function getIsActive(): ?bool
  79. {
  80. return $this->isActive;
  81. }
  82. public function setIsActive(?bool $isActive): self
  83. {
  84. $this->isActive = $isActive;
  85. return $this;
  86. }
  87. public function getCreatedAt(): ?\DateTimeInterface
  88. {
  89. return $this->createdAt;
  90. }
  91. public function setCreatedAt(\DateTimeInterface $createdAt): self
  92. {
  93. $this->createdAt = $createdAt;
  94. return $this;
  95. }
  96. public function getUpdatedAt(): ?\DateTimeInterface
  97. {
  98. return $this->updatedAt;
  99. }
  100. public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  101. {
  102. $this->updatedAt = $updatedAt;
  103. return $this;
  104. }
  105. public function isIsActive(): ?bool
  106. {
  107. return $this->isActive;
  108. }
  109. }