src/Entity/FielpetPol/EnfermedadDetalle.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\FielpetPol;
  3. use App\Entity\Traits\LoggableTrait;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. /**
  10. * EnfermedadDetalle
  11. *
  12. * @ORM\Table(name="enfermedad_caracteristica_detalle")
  13. * @ORM\Entity
  14. * @ORM\Entity(repositoryClass="App\Repository\FielpetPol\EnfermedadCaracteristicaDetalleRepository")
  15. * @Gedmo\Loggable
  16. */
  17. class EnfermedadDetalle
  18. {
  19. /**
  20. * LoggableTrait add add_user_ add_date, edit_user, edit_date
  21. */
  22. use LoggableTrait;
  23. /**
  24. * @var integer
  25. *
  26. * @ORM\Column(name="id", type="integer", nullable=false)
  27. * @ORM\Id
  28. * @ORM\GeneratedValue(strategy="IDENTITY")
  29. */
  30. private $id;
  31. /**
  32. * @var Enfermedad
  33. *
  34. * @ORM\ManyToOne(targetEntity="Enfermedad", inversedBy="detalles", cascade={"persist"})
  35. * @ORM\JoinColumns({
  36. * @ORM\JoinColumn(name="fk_enfermedad", referencedColumnName="id")
  37. * })
  38. */
  39. private $fkEnfermedad;
  40. /**
  41. * @var string
  42. *
  43. * @ORM\Column(name="detalle", type="string", length=255, nullable=true)
  44. * @Gedmo\Versioned
  45. */
  46. private $detalle;
  47. /**
  48. * @var boolean
  49. *
  50. * @ORM\Column(name="obligatorio", type="boolean", nullable=true)
  51. * @Gedmo\Versioned
  52. */
  53. private $obligatorio;
  54. /**
  55. * @var string
  56. *
  57. * @ORM\Column(name="observaciones", type="string", length=255, nullable=true)
  58. * @Gedmo\Versioned
  59. */
  60. private $observaciones;
  61. /**
  62. * @var string
  63. *
  64. * @ORM\Column(name="texto_fuera_norma", type="string", length=255, nullable=true)
  65. * @Gedmo\Versioned
  66. */
  67. private $textoFueraNorma;
  68. public function getId(): ?int
  69. {
  70. return $this->id;
  71. }
  72. public function getDetalle(): ?string
  73. {
  74. return $this->detalle;
  75. }
  76. public function setDetalle(?string $detalle): static
  77. {
  78. $this->detalle = $detalle;
  79. return $this;
  80. }
  81. public function isObligatorio(): ?bool
  82. {
  83. return $this->obligatorio;
  84. }
  85. public function setObligatorio(?bool $obligatorio): static
  86. {
  87. $this->obligatorio = $obligatorio;
  88. return $this;
  89. }
  90. public function getObservaciones(): ?string
  91. {
  92. return $this->observaciones;
  93. }
  94. public function setObservaciones(?string $observaciones): static
  95. {
  96. $this->observaciones = $observaciones;
  97. return $this;
  98. }
  99. public function getFkEnfermedad(): ?Enfermedad
  100. {
  101. return $this->fkEnfermedad;
  102. }
  103. public function setFkEnfermedad(?Enfermedad $fkEnfermedad): static
  104. {
  105. $this->fkEnfermedad = $fkEnfermedad;
  106. return $this;
  107. }
  108. }