src/Entity/FielpetPol/ManifestacionClinicaSintoma.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. * ManifestacionClinicaSintoma
  11. *
  12. * @ORM\Table(name="manifestacion_clinica_sintoma")
  13. * @ORM\Entity
  14. * @ORM\Entity(repositoryClass="App\Repository\FielpetPol\ManifestacionClinicaSintomaRepository")
  15. * @Gedmo\Loggable
  16. */
  17. class ManifestacionClinicaSintoma
  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 \Policy
  33. *
  34. * @ORM\ManyToOne(targetEntity="Policy", inversedBy="manifestaciones", cascade={"persist"})
  35. * @ORM\JoinColumns({
  36. * @ORM\JoinColumn(name="fk_policy", referencedColumnName="id")
  37. * })
  38. */
  39. private $fkPolicy;
  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 string
  49. *
  50. * @ORM\Column(name="valor", type="string", length=255, nullable=true)
  51. * @Gedmo\Versioned
  52. */
  53. private $valor;
  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 boolean
  63. *
  64. * @ORM\Column(name="obligatorio", type="boolean", nullable=true)
  65. * @Gedmo\Versioned
  66. */
  67. private $obligatorio;
  68. /**
  69. * @var string
  70. *
  71. * @ORM\Column(name="texto_fuera_norma", type="string", length=255, nullable=true)
  72. * @Gedmo\Versioned
  73. */
  74. private $textoFueraNorma;
  75. /**
  76. * @return int
  77. */
  78. public function getId(): int
  79. {
  80. return $this->id;
  81. }
  82. /**
  83. * @param int $id
  84. */
  85. public function setId(int $id): void
  86. {
  87. $this->id = $id;
  88. }
  89. /**
  90. * @return Policy
  91. */
  92. public function getFkPolicy(): ?Policy
  93. {
  94. return $this->fkPolicy;
  95. }
  96. /**
  97. * @param \Policy $fkPolicy
  98. */
  99. public function setFkPolicy(Policy $fkPolicy): void
  100. {
  101. $this->fkPolicy = $fkPolicy;
  102. }
  103. /**
  104. * @return string
  105. */
  106. public function getDetalle(): ?string
  107. {
  108. return $this->detalle;
  109. }
  110. /**
  111. * @param string $detalle
  112. */
  113. public function setDetalle(?string $detalle): void
  114. {
  115. $this->detalle = $detalle;
  116. }
  117. /**
  118. * @return string
  119. */
  120. public function getValor(): ?string
  121. {
  122. return $this->valor;
  123. }
  124. /**
  125. * @param string $valor
  126. */
  127. public function setValor(?string $valor): void
  128. {
  129. $this->valor = $valor;
  130. }
  131. /**
  132. * @return string
  133. */
  134. public function getObservaciones(): ?string
  135. {
  136. return $this->observaciones;
  137. }
  138. /**
  139. * @param string $observaciones
  140. */
  141. public function setObservaciones(?string $observaciones): void
  142. {
  143. $this->observaciones = $observaciones;
  144. }
  145. /**
  146. * @return bool
  147. */
  148. public function isObligatorio(): bool
  149. {
  150. return $this->obligatorio;
  151. }
  152. /**
  153. * @param bool $obligatorio
  154. */
  155. public function setObligatorio(?bool $obligatorio): void
  156. {
  157. $this->obligatorio = $obligatorio;
  158. }
  159. /**
  160. * @return string
  161. */
  162. public function getTextoFueraNorma(): string
  163. {
  164. return $this->textoFueraNorma;
  165. }
  166. /**
  167. * @param string $textoFueraNorma
  168. */
  169. public function setTextoFueraNorma(?string $textoFueraNorma): void
  170. {
  171. $this->textoFueraNorma = $textoFueraNorma;
  172. }
  173. }