<?php
namespace App\Entity;
use App\Enum\TipoAccionEnum;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass="App\Repository\AccionCheckRepository")
* @ORM\Table(name="accion_check", schema="perseo")
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
*/
class AccionCheck extends AccionAbstract
{
/**
* @ORM\ManyToOne(targetEntity="App\Entity\EstadoCheck", inversedBy="accionesCheck")
* @ORM\JoinColumn(name="estado_check_id", referencedColumnName="id")
*/
private $estado;
public function __toString(): string
{
return $this->getEstado()?->getNombre() ?? '---';
}
public function getEstado(): ?EstadoCheck
{
return $this->estado;
}
public function setEstado(?EstadoCheck $estado): self
{
$this->estado = $estado;
return $this;
}
}