<?phpnamespace App\Entity;use App\Repository\ComCargarOficioAutorizacionRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ComCargarOficioAutorizacionRepository::class)]class ComCargarOficioAutorizacion{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'comCargarOficioAutorizacions')] private ?TerEmpresaCliente $terEmpresaCliente = null; #[ORM\Column(length: 255, nullable: true)] private ?string $procesoEjecucion = null; #[ORM\Column(length: 255, nullable: true)] private ?string $oficioAutorizacion = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 255, nullable: true)] private ?string $createUser = null; #[ORM\Column(length: 255, nullable: true)] private ?string $updateUser = null; #[ORM\OneToMany(mappedBy: 'comCargarOficioAutorizacion', targetEntity: ComValidarOficioAutorizacion::class)] private Collection $comValidarOficioAutorizacions; public function __construct() { $this->comValidarOficioAutorizacions = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getTerEmpresaCliente(): ?TerEmpresaCliente { return $this->terEmpresaCliente; } public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static { $this->terEmpresaCliente = $terEmpresaCliente; return $this; } public function getProcesoEjecucion(): ?string { return $this->procesoEjecucion; } public function setProcesoEjecucion(?string $procesoEjecucion): static { $this->procesoEjecucion = $procesoEjecucion; return $this; } public function getOficioAutorizacion(): ?string { return $this->oficioAutorizacion; } public function setOficioAutorizacion(?string $oficioAutorizacion): static { $this->oficioAutorizacion = $oficioAutorizacion; return $this; } public function getCreateAt(): ?\DateTimeInterface { return $this->createAt; } public function setCreateAt(?\DateTimeInterface $createAt): static { $this->createAt = $createAt; return $this; } public function getUpdateAt(): ?\DateTimeInterface { return $this->updateAt; } public function setUpdateAt(?\DateTimeInterface $updateAt): static { $this->updateAt = $updateAt; return $this; } public function getCreateUser(): ?string { return $this->createUser; } public function setCreateUser(?string $createUser): static { $this->createUser = $createUser; return $this; } public function getUpdateUser(): ?string { return $this->updateUser; } public function setUpdateUser(?string $updateUser): static { $this->updateUser = $updateUser; return $this; } /** * @return Collection<int, ComValidarOficioAutorizacion> */ public function getComValidarOficioAutorizacions(): Collection { return $this->comValidarOficioAutorizacions; } public function addComValidarOficioAutorizacion(ComValidarOficioAutorizacion $comValidarOficioAutorizacion): static { if (!$this->comValidarOficioAutorizacions->contains($comValidarOficioAutorizacion)) { $this->comValidarOficioAutorizacions->add($comValidarOficioAutorizacion); $comValidarOficioAutorizacion->setComCargarOficioAutorizacion($this); } return $this; } public function removeComValidarOficioAutorizacion(ComValidarOficioAutorizacion $comValidarOficioAutorizacion): static { if ($this->comValidarOficioAutorizacions->removeElement($comValidarOficioAutorizacion)) { // set the owning side to null (unless already changed) if ($comValidarOficioAutorizacion->getComCargarOficioAutorizacion() === $this) { $comValidarOficioAutorizacion->setComCargarOficioAutorizacion(null); } } return $this; }}