src/Entity/FielpetPol/TratamientoDetalle.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. * TratamientoDetalle
  11. *
  12. * @ORM\Table(name="tratamiento_detalle")
  13. * @ORM\Entity
  14. * @ORM\Entity(repositoryClass="App\Repository\FielpetPol\TratamientoDetalleRepository")
  15. * @Gedmo\Loggable
  16. */
  17. class TratamientoDetalle
  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. public function getId(): ?int
  76. {
  77. return $this->id;
  78. }
  79. public function getDetalle(): ?string
  80. {
  81. return $this->detalle;
  82. }
  83. public function setDetalle(?string $detalle): static
  84. {
  85. $this->detalle = $detalle;
  86. return $this;
  87. }
  88. public function isObligatorio(): ?bool
  89. {
  90. return $this->obligatorio;
  91. }
  92. public function setObligatorio(?bool $obligatorio): static
  93. {
  94. $this->obligatorio = $obligatorio;
  95. return $this;
  96. }
  97. /**
  98. * @return Policy
  99. */
  100. public function getFkPolicy(): ?Policy
  101. {
  102. return $this->fkPolicy;
  103. }
  104. /**
  105. * @param Policy $fkPolicy
  106. */
  107. public function setFkPolicy(Policy $fkPolicy): void
  108. {
  109. $this->fkPolicy = $fkPolicy;
  110. }
  111. /**
  112. * @return string
  113. */
  114. public function getTextoFueraNorma(): string
  115. {
  116. return $this->textoFueraNorma;
  117. }
  118. /**
  119. * @param string $textoFueraNorma
  120. */
  121. public function setTextoFueraNorma(?string $textoFueraNorma): void
  122. {
  123. $this->textoFueraNorma = $textoFueraNorma;
  124. }
  125. /**
  126. * @return string
  127. */
  128. public function getValor(): ?string
  129. {
  130. return $this->valor;
  131. }
  132. /**
  133. * @param string $valor
  134. */
  135. public function setValor(?string $valor): void
  136. {
  137. $this->valor = $valor;
  138. }
  139. /**
  140. * @return string
  141. */
  142. public function getObservaciones(): ?string
  143. {
  144. return $this->observaciones;
  145. }
  146. /**
  147. * @param string $observaciones
  148. */
  149. public function setObservaciones(?string $observaciones): void
  150. {
  151. $this->observaciones = $observaciones;
  152. }
  153. }