src/Entity/RFDisposicion.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RFDisposicionRepository;
  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. #[ORM\Table(name'rf_disposicion')]
  9. #[ORM\Entity(repositoryClassRFDisposicionRepository::class)]
  10. class RFDisposicion
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'disposicion')]
  17.     private ?ParProceso $proceso null;
  18.     #[ORM\ManyToOne(inversedBy'disposicion')]
  19.     private ?ParTipoDisposicion $tipoDisposicion null;
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $observacion null;
  22.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  23.     private ?\DateTimeInterface $nuevaFecha null;
  24.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  25.     private ?\DateTimeInterface $createAt null;
  26.     #[ORM\Column(length50)]
  27.     private ?string $createUser null;
  28.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  29.     private ?\DateTimeInterface $updateAt null;
  30.     #[ORM\Column(length50)]
  31.     private ?string $updateUser null;
  32.     #[ORM\ManyToOne(inversedBy'disposicion')]
  33.     private ?ParEstado $estado null;
  34.     #[ORM\OneToMany(mappedBy'disposicion'targetEntityRFDisposicionDocumento::class)]
  35.     private Collection $disposicionDocumento;
  36.     #[ORM\OneToMany(mappedBy'disposicion'targetEntityRFDisposicionCliente::class)]
  37.     private Collection $disposicionCliente;
  38.     #[ORM\OneToMany(mappedBy'disposicion'targetEntityRFDisposicionProveedor::class)]
  39.     private Collection $disposicionProveedor;
  40.     public function __construct()
  41.     {
  42.         $this->disposicionDocumento = new ArrayCollection();
  43.         $this->disposicionCliente = new ArrayCollection();
  44.         $this->disposicionProveedor = new ArrayCollection();
  45.     }
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getProceso(): ?ParProceso
  51.     {
  52.         return $this->proceso;
  53.     }
  54.     public function setProceso(?ParProceso $proceso): static
  55.     {
  56.         $this->proceso $proceso;
  57.         return $this;
  58.     }
  59.     public function getTipoDisposicion(): ?ParTipoDisposicion
  60.     {
  61.         return $this->tipoDisposicion;
  62.     }
  63.     public function setTipoDisposicion(?ParTipoDisposicion $tipoDisposicion): static
  64.     {
  65.         $this->tipoDisposicion $tipoDisposicion;
  66.         return $this;
  67.     }
  68.     public function getObservacion(): ?string
  69.     {
  70.         return $this->observacion;
  71.     }
  72.     public function setObservacion(?string $observacion): static
  73.     {
  74.         $this->observacion $observacion;
  75.         return $this;
  76.     }
  77.     public function getNuevaFecha(): ?\DateTimeInterface
  78.     {
  79.         return $this->nuevaFecha;
  80.     }
  81.     public function setNuevaFecha(?\DateTimeInterface $nuevaFecha): static
  82.     {
  83.         $this->nuevaFecha $nuevaFecha;
  84.         return $this;
  85.     }
  86.     public function getCreateAt(): ?\DateTimeInterface
  87.     {
  88.         return $this->createAt;
  89.     }
  90.     public function setCreateAt(\DateTimeInterface $createAt): static
  91.     {
  92.         $this->createAt $createAt;
  93.         return $this;
  94.     }
  95.     public function getCreateUser(): ?string
  96.     {
  97.         return $this->createUser;
  98.     }
  99.     public function setCreateUser(?string $createuser): static
  100.     {
  101.         $this->createUser $createuser;
  102.         return $this;
  103.     }
  104.     public function getUpdateAt(): ?\DateTimeInterface
  105.     {
  106.         return $this->updateAt;
  107.     }
  108.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  109.     {
  110.         $this->updateAt $updateAt;
  111.         return $this;
  112.     }
  113.     public function getUpdateUser(): ?string
  114.     {
  115.         return $this->updateUser;
  116.     }
  117.     public function setUpdateUser(string $updateUser): static
  118.     {
  119.         $this->updateUser $updateUser;
  120.         return $this;
  121.     }
  122.     public function getEstado(): ?ParEstado
  123.     {
  124.         return $this->estado;
  125.     }
  126.     public function setEstado(?ParEstado $estado): static
  127.     {
  128.         $this->estado $estado;
  129.         return $this;
  130.     }
  131.     /**
  132.      * @return Collection<int, RFDisposicionDocumento>
  133.      */
  134.     public function getDisposicionDocumento(): Collection
  135.     {
  136.         return $this->disposicionDocumento;
  137.     }
  138.     public function addDisposicionDocumento(RFDisposicionDocumento $disposicionDocumento): static
  139.     {
  140.         if (!$this->disposicionDocumento->contains($disposicionDocumento)) {
  141.             $this->disposicionDocumento->add($disposicionDocumento);
  142.             $disposicionDocumento->setDisposicion($this);
  143.         }
  144.         return $this;
  145.     }
  146.     public function removeDisposicionDocumento(RFDisposicionDocumento $disposicionDocumento): static
  147.     {
  148.         if ($this->disposicionDocumento->removeElement($disposicionDocumento)) {
  149.             // set the owning side to null (unless already changed)
  150.             if ($disposicionDocumento->getDisposicion() === $this) {
  151.                 $disposicionDocumento->setDisposicion(null);
  152.             }
  153.         }
  154.         return $this;
  155.     }
  156.     /**
  157.      * @return Collection<int, RFDisposicionCliente>
  158.      */
  159.     public function getDisposicionCliente(): Collection
  160.     {
  161.         return $this->disposicionCliente;
  162.     }
  163.     public function addDisposicionCliente(RFDisposicionCliente $disposicionCliente): static
  164.     {
  165.         if (!$this->disposicionCliente->contains($disposicionCliente)) {
  166.             $this->disposicionCliente->add($disposicionCliente);
  167.             $disposicionCliente->setDisposicion($this);
  168.         }
  169.         return $this;
  170.     }
  171.     public function removeDisposicionCliente(RFDisposicionCliente $disposicionCliente): static
  172.     {
  173.         if ($this->disposicionCliente->removeElement($disposicionCliente)) {
  174.             // set the owning side to null (unless already changed)
  175.             if ($disposicionCliente->getDisposicion() === $this) {
  176.                 $disposicionCliente->setDisposicion(null);
  177.             }
  178.         }
  179.         return $this;
  180.     }
  181.     /**
  182.      * @return Collection<int, RFDisposicionProveedor>
  183.      */
  184.     public function getDisposicionProveedor(): Collection
  185.     {
  186.         return $this->disposicionProveedor;
  187.     }
  188.     public function addDisposicionProveedor(RFDisposicionProveedor $disposicionProveedor): static
  189.     {
  190.         if (!$this->disposicionProveedor->contains($disposicionProveedor)) {
  191.             $this->disposicionProveedor->add($disposicionProveedor);
  192.             $disposicionProveedor->setDisposicion($this);
  193.         }
  194.         return $this;
  195.     }
  196.     public function removeDisposicionProveedor(RFDisposicionProveedor $disposicionProveedor): static
  197.     {
  198.         if ($this->disposicionProveedor->removeElement($disposicionProveedor)) {
  199.             // set the owning side to null (unless already changed)
  200.             if ($disposicionProveedor->getDisposicion() === $this) {
  201.                 $disposicionProveedor->setDisposicion(null);
  202.             }
  203.         }
  204.         return $this;
  205.     }
  206. }