src/Domain/Entity/Representacion.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Domain\Entity;
  3. use App\Domain\Enum\TipoRepresentacionEnum;
  4. use Doctrine\DBAL\Types\Types;
  5. class Representacion
  6. {
  7.     private ?string $interviniente_id null;
  8.     private ?string $texto null;
  9.     private ?int $id null;
  10.     /**
  11.      * @var Persona|null
  12.      * @deprecated actualmente no se está utilizando en los maestros
  13.      */
  14.     private ?Persona $representante null;
  15.     private ?Expediente $expediente null;
  16.     private $tipoRepresentacion;
  17.     private $documento;
  18.     public function getIntervinienteId(): ?string
  19.     {
  20.         return $this->interviniente_id;
  21.     }
  22.     public function setIntervinienteId(string $interviniente_id): static
  23.     {
  24.         $this->interviniente_id $interviniente_id;
  25.         return $this;
  26.     }
  27.     public function getTexto(): ?string
  28.     {
  29.         return $this->texto;
  30.     }
  31.     public function setTexto(?string $texto): static
  32.     {
  33.         $this->texto $texto;
  34.         return $this;
  35.     }
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     /**
  41.      * @deprecated ¿actualmente se utiliza?
  42.      * @return Persona|null
  43.      */
  44.     public function getRepresentante(): ?Persona
  45.     {
  46.         return $this->representante;
  47.     }
  48.     /**
  49.      * @deprecated ¿actualmente se utiliza?
  50.      * @param Persona|null $representante
  51.      * @return $this
  52.      */
  53.     public function setRepresentante(?Persona $representante): static
  54.     {
  55.         $this->representante $representante;
  56.         return $this;
  57.     }
  58.     public function getExpediente(): ?Expediente
  59.     {
  60.         return $this->expediente;
  61.     }
  62.     public function setExpediente(?Expediente $expediente): static
  63.     {
  64.         $this->expediente $expediente;
  65.         return $this;
  66.     }
  67.     public function getTipoRepresentacion(): ?string
  68.     {
  69.         return $this->tipoRepresentacion;
  70.     }
  71.     public function setTipoRepresentacion(?string $tipoRepresentacion): static
  72.     {
  73.         $this->tipoRepresentacion $tipoRepresentacion;
  74.         return $this;
  75.     }
  76.     public function getDocumento()
  77.     {
  78.         return $this->documento;
  79.     }
  80.     public function setDocumento($documento): static
  81.     {
  82.         $this->documento $documento;
  83.         return $this;
  84.     }
  85.     public function __toString(): string
  86.     {
  87.         $label TipoRepresentacionEnum::labelFromString($this->getTipoRepresentacion());
  88.         return trim("{$this->representante} ({$label})");
  89.     }
  90. }