<?phpnamespace App\Entity;use App\Repository\RFDisposicionRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Table(name: 'rf_disposicion')]#[ORM\Entity(repositoryClass: RFDisposicionRepository::class)]class RFDisposicion{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'disposicion')] private ?ParProceso $proceso = null; #[ORM\ManyToOne(inversedBy: 'disposicion')] private ?ParTipoDisposicion $tipoDisposicion = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $observacion = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $nuevaFecha = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(length: 50)] private ?string $createUser = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 50)] private ?string $updateUser = null; #[ORM\ManyToOne(inversedBy: 'disposicion')] private ?ParEstado $estado = null; #[ORM\OneToMany(mappedBy: 'disposicion', targetEntity: RFDisposicionDocumento::class)] private Collection $disposicionDocumento; #[ORM\OneToMany(mappedBy: 'disposicion', targetEntity: RFDisposicionCliente::class)] private Collection $disposicionCliente; #[ORM\OneToMany(mappedBy: 'disposicion', targetEntity: RFDisposicionProveedor::class)] private Collection $disposicionProveedor; public function __construct() { $this->disposicionDocumento = new ArrayCollection(); $this->disposicionCliente = new ArrayCollection(); $this->disposicionProveedor = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getProceso(): ?ParProceso { return $this->proceso; } public function setProceso(?ParProceso $proceso): static { $this->proceso = $proceso; return $this; } public function getTipoDisposicion(): ?ParTipoDisposicion { return $this->tipoDisposicion; } public function setTipoDisposicion(?ParTipoDisposicion $tipoDisposicion): static { $this->tipoDisposicion = $tipoDisposicion; return $this; } public function getObservacion(): ?string { return $this->observacion; } public function setObservacion(?string $observacion): static { $this->observacion = $observacion; return $this; } public function getNuevaFecha(): ?\DateTimeInterface { return $this->nuevaFecha; } public function setNuevaFecha(?\DateTimeInterface $nuevaFecha): static { $this->nuevaFecha = $nuevaFecha; return $this; } public function getCreateAt(): ?\DateTimeInterface { return $this->createAt; } public function setCreateAt(\DateTimeInterface $createAt): static { $this->createAt = $createAt; return $this; } public function getCreateUser(): ?string { return $this->createUser; } public function setCreateUser(?string $createuser): static { $this->createUser = $createuser; return $this; } public function getUpdateAt(): ?\DateTimeInterface { return $this->updateAt; } public function setUpdateAt(\DateTimeInterface $updateAt): static { $this->updateAt = $updateAt; return $this; } public function getUpdateUser(): ?string { return $this->updateUser; } public function setUpdateUser(string $updateUser): static { $this->updateUser = $updateUser; return $this; } public function getEstado(): ?ParEstado { return $this->estado; } public function setEstado(?ParEstado $estado): static { $this->estado = $estado; return $this; } /** * @return Collection<int, RFDisposicionDocumento> */ public function getDisposicionDocumento(): Collection { return $this->disposicionDocumento; } public function addDisposicionDocumento(RFDisposicionDocumento $disposicionDocumento): static { if (!$this->disposicionDocumento->contains($disposicionDocumento)) { $this->disposicionDocumento->add($disposicionDocumento); $disposicionDocumento->setDisposicion($this); } return $this; } public function removeDisposicionDocumento(RFDisposicionDocumento $disposicionDocumento): static { if ($this->disposicionDocumento->removeElement($disposicionDocumento)) { // set the owning side to null (unless already changed) if ($disposicionDocumento->getDisposicion() === $this) { $disposicionDocumento->setDisposicion(null); } } return $this; } /** * @return Collection<int, RFDisposicionCliente> */ public function getDisposicionCliente(): Collection { return $this->disposicionCliente; } public function addDisposicionCliente(RFDisposicionCliente $disposicionCliente): static { if (!$this->disposicionCliente->contains($disposicionCliente)) { $this->disposicionCliente->add($disposicionCliente); $disposicionCliente->setDisposicion($this); } return $this; } public function removeDisposicionCliente(RFDisposicionCliente $disposicionCliente): static { if ($this->disposicionCliente->removeElement($disposicionCliente)) { // set the owning side to null (unless already changed) if ($disposicionCliente->getDisposicion() === $this) { $disposicionCliente->setDisposicion(null); } } return $this; } /** * @return Collection<int, RFDisposicionProveedor> */ public function getDisposicionProveedor(): Collection { return $this->disposicionProveedor; } public function addDisposicionProveedor(RFDisposicionProveedor $disposicionProveedor): static { if (!$this->disposicionProveedor->contains($disposicionProveedor)) { $this->disposicionProveedor->add($disposicionProveedor); $disposicionProveedor->setDisposicion($this); } return $this; } public function removeDisposicionProveedor(RFDisposicionProveedor $disposicionProveedor): static { if ($this->disposicionProveedor->removeElement($disposicionProveedor)) { // set the owning side to null (unless already changed) if ($disposicionProveedor->getDisposicion() === $this) { $disposicionProveedor->setDisposicion(null); } } return $this; }}