<?phpnamespace App\Domain\Entity;use App\Domain\Enum\TipoRepresentacionEnum;use Doctrine\DBAL\Types\Types;class Representacion{ private ?string $interviniente_id = null; private ?string $texto = null; private ?int $id = null; /** * @var Persona|null * @deprecated actualmente no se está utilizando en los maestros */ private ?Persona $representante = null; private ?Expediente $expediente = null; private $tipoRepresentacion; private $documento; public function getIntervinienteId(): ?string { return $this->interviniente_id; } public function setIntervinienteId(string $interviniente_id): static { $this->interviniente_id = $interviniente_id; return $this; } public function getTexto(): ?string { return $this->texto; } public function setTexto(?string $texto): static { $this->texto = $texto; return $this; } public function getId(): ?int { return $this->id; } /** * @deprecated ¿actualmente se utiliza? * @return Persona|null */ public function getRepresentante(): ?Persona { return $this->representante; } /** * @deprecated ¿actualmente se utiliza? * @param Persona|null $representante * @return $this */ public function setRepresentante(?Persona $representante): static { $this->representante = $representante; return $this; } public function getExpediente(): ?Expediente { return $this->expediente; } public function setExpediente(?Expediente $expediente): static { $this->expediente = $expediente; return $this; } public function getTipoRepresentacion(): ?string { return $this->tipoRepresentacion; } public function setTipoRepresentacion(?string $tipoRepresentacion): static { $this->tipoRepresentacion = $tipoRepresentacion; return $this; } public function getDocumento() { return $this->documento; } public function setDocumento($documento): static { $this->documento = $documento; return $this; } public function __toString(): string { $label = TipoRepresentacionEnum::labelFromString($this->getTipoRepresentacion()); return trim("{$this->representante} ({$label})"); }}