<?php
namespace App\Entity\FielpetPol;
use App\Entity\Traits\LoggableTrait;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* EnfermedadDetalle
*
* @ORM\Table(name="enfermedad_caracteristica_detalle")
* @ORM\Entity
* @ORM\Entity(repositoryClass="App\Repository\FielpetPol\EnfermedadCaracteristicaDetalleRepository")
* @Gedmo\Loggable
*/
class EnfermedadDetalle
{
/**
* LoggableTrait add add_user_ add_date, edit_user, edit_date
*/
use LoggableTrait;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var Enfermedad
*
* @ORM\ManyToOne(targetEntity="Enfermedad", inversedBy="detalles", cascade={"persist"})
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="fk_enfermedad", referencedColumnName="id")
* })
*/
private $fkEnfermedad;
/**
* @var string
*
* @ORM\Column(name="detalle", type="string", length=255, nullable=true)
* @Gedmo\Versioned
*/
private $detalle;
/**
* @var boolean
*
* @ORM\Column(name="obligatorio", type="boolean", nullable=true)
* @Gedmo\Versioned
*/
private $obligatorio;
/**
* @var string
*
* @ORM\Column(name="observaciones", type="string", length=255, nullable=true)
* @Gedmo\Versioned
*/
private $observaciones;
/**
* @var string
*
* @ORM\Column(name="texto_fuera_norma", type="string", length=255, nullable=true)
* @Gedmo\Versioned
*/
private $textoFueraNorma;
public function getId(): ?int
{
return $this->id;
}
public function getDetalle(): ?string
{
return $this->detalle;
}
public function setDetalle(?string $detalle): static
{
$this->detalle = $detalle;
return $this;
}
public function isObligatorio(): ?bool
{
return $this->obligatorio;
}
public function setObligatorio(?bool $obligatorio): static
{
$this->obligatorio = $obligatorio;
return $this;
}
public function getObservaciones(): ?string
{
return $this->observaciones;
}
public function setObservaciones(?string $observaciones): static
{
$this->observaciones = $observaciones;
return $this;
}
public function getFkEnfermedad(): ?Enfermedad
{
return $this->fkEnfermedad;
}
public function setFkEnfermedad(?Enfermedad $fkEnfermedad): static
{
$this->fkEnfermedad = $fkEnfermedad;
return $this;
}
}