<?phpnamespace App\Entity;use App\Repository\ComSopRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ComSopRepository::class)]class ComSop{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $fechaEmisionSop = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(length: 255)] private ?string $createUser = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 255)] private ?string $updateUser = null; #[ORM\ManyToOne(inversedBy: 'ComSop')] private ?TerEmpresaCliente $terEmpresaCliente = null; #[ORM\OneToMany(mappedBy: 'comSop', targetEntity: ComSopDocumentos::class)] private Collection $comSopDocumentos; #[ORM\OneToMany(mappedBy: 'comSop', targetEntity: ComSopDocumentosP::class)] private Collection $comSopDocumentosP; public function __construct() { $this->comSopDocumentos = new ArrayCollection(); $this->comSopDocumentosP = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getFechaEmisionSop(): ?\DateTimeInterface { return $this->fechaEmisionSop; } public function setFechaEmisionSop(\DateTimeInterface $fechaEmisionSop): static { $this->fechaEmisionSop = $fechaEmisionSop; 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 getTerEmpresaCliente(): ?TerEmpresaCliente { return $this->terEmpresaCliente; } public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static { $this->terEmpresaCliente = $terEmpresaCliente; return $this; } /** * @return Collection<int, ComSopDocumentos> */ public function getComSopDocumentos(): Collection { return $this->comSopDocumentos; } public function addComSopDocumento(ComSopDocumentos $comSopDocumento): static { if (!$this->comSopDocumentos->contains($comSopDocumento)) { $this->comSopDocumentos->add($comSopDocumento); $comSopDocumento->setComSop($this); } return $this; } public function removeComSopDocumento(ComSopDocumentos $comSopDocumento): static { if ($this->comSopDocumentos->removeElement($comSopDocumento)) { // set the owning side to null (unless already changed) if ($comSopDocumento->getComSop() === $this) { $comSopDocumento->setComSop(null); } } return $this; } /** * @return Collection<int, ComSopDocumentosP> */ public function getComSopDocumentosP(): Collection { return $this->comSopDocumentosP; } public function addComSopDocumentosP(ComSopDocumentosP $comSopDocumentosP): static { if (!$this->comSopDocumentosP->contains($comSopDocumentosP)) { $this->comSopDocumentosP->add($comSopDocumentosP); $comSopDocumentosP->setComSop($this); } return $this; } public function removeComSopDocumentosP(ComSopDocumentosP $comSopDocumentosP): static { if ($this->comSopDocumentosP->removeElement($comSopDocumentosP)) { // set the owning side to null (unless already changed) if ($comSopDocumentosP->getComSop() === $this) { $comSopDocumentosP->setComSop(null); } } return $this; }}