src/Entity/ComSop.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComSopRepository;
  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\Entity(repositoryClassComSopRepository::class)]
  9. class ComSop
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $fechaEmisionSop null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  18.     private ?\DateTimeInterface $createAt null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $createUser null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  22.     private ?\DateTimeInterface $updateAt null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $updateUser null;
  25.     #[ORM\ManyToOne(inversedBy'ComSop')]
  26.     private ?TerEmpresaCliente $terEmpresaCliente null;
  27.     #[ORM\OneToMany(mappedBy'comSop'targetEntityComSopDocumentos::class)]
  28.     private Collection $comSopDocumentos;
  29.     #[ORM\OneToMany(mappedBy'comSop'targetEntityComSopDocumentosP::class)]
  30.     private Collection $comSopDocumentosP;
  31.     public function __construct()
  32.     {
  33.         $this->comSopDocumentos = new ArrayCollection();
  34.         $this->comSopDocumentosP = new ArrayCollection();
  35.     }
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getFechaEmisionSop(): ?\DateTimeInterface
  41.     {
  42.         return $this->fechaEmisionSop;
  43.     }
  44.     public function setFechaEmisionSop(\DateTimeInterface $fechaEmisionSop): static
  45.     {
  46.         $this->fechaEmisionSop $fechaEmisionSop;
  47.         return $this;
  48.     }
  49.     public function getCreateAt(): ?\DateTimeInterface
  50.     {
  51.         return $this->createAt;
  52.     }
  53.     public function setCreateAt(\DateTimeInterface $createAt): static
  54.     {
  55.         $this->createAt $createAt;
  56.         return $this;
  57.     }
  58.     public function getCreateUser(): ?string
  59.     {
  60.         return $this->createUser;
  61.     }
  62.     public function setCreateUser(string $createUser): static
  63.     {
  64.         $this->createUser $createUser;
  65.         return $this;
  66.     }
  67.     public function getUpdateAt(): ?\DateTimeInterface
  68.     {
  69.         return $this->updateAt;
  70.     }
  71.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  72.     {
  73.         $this->updateAt $updateAt;
  74.         return $this;
  75.     }
  76.     public function getUpdateUser(): ?string
  77.     {
  78.         return $this->updateUser;
  79.     }
  80.     public function setUpdateUser(string $updateUser): static
  81.     {
  82.         $this->updateUser $updateUser;
  83.         return $this;
  84.     }
  85.     public function getTerEmpresaCliente(): ?TerEmpresaCliente
  86.     {
  87.         return $this->terEmpresaCliente;
  88.     }
  89.     public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
  90.     {
  91.         $this->terEmpresaCliente $terEmpresaCliente;
  92.         return $this;
  93.     }
  94.     /**
  95.      * @return Collection<int, ComSopDocumentos>
  96.      */
  97.     public function getComSopDocumentos(): Collection
  98.     {
  99.         return $this->comSopDocumentos;
  100.     }
  101.     public function addComSopDocumento(ComSopDocumentos $comSopDocumento): static
  102.     {
  103.         if (!$this->comSopDocumentos->contains($comSopDocumento)) {
  104.             $this->comSopDocumentos->add($comSopDocumento);
  105.             $comSopDocumento->setComSop($this);
  106.         }
  107.         return $this;
  108.     }
  109.     public function removeComSopDocumento(ComSopDocumentos $comSopDocumento): static
  110.     {
  111.         if ($this->comSopDocumentos->removeElement($comSopDocumento)) {
  112.             // set the owning side to null (unless already changed)
  113.             if ($comSopDocumento->getComSop() === $this) {
  114.                 $comSopDocumento->setComSop(null);
  115.             }
  116.         }
  117.         return $this;
  118.     }
  119.     /**
  120.      * @return Collection<int, ComSopDocumentosP>
  121.      */
  122.     public function getComSopDocumentosP(): Collection
  123.     {
  124.         return $this->comSopDocumentosP;
  125.     }
  126.     public function addComSopDocumentosP(ComSopDocumentosP $comSopDocumentosP): static
  127.     {
  128.         if (!$this->comSopDocumentosP->contains($comSopDocumentosP)) {
  129.             $this->comSopDocumentosP->add($comSopDocumentosP);
  130.             $comSopDocumentosP->setComSop($this);
  131.         }
  132.         return $this;
  133.     }
  134.     public function removeComSopDocumentosP(ComSopDocumentosP $comSopDocumentosP): static
  135.     {
  136.         if ($this->comSopDocumentosP->removeElement($comSopDocumentosP)) {
  137.             // set the owning side to null (unless already changed)
  138.             if ($comSopDocumentosP->getComSop() === $this) {
  139.                 $comSopDocumentosP->setComSop(null);
  140.             }
  141.         }
  142.         return $this;
  143.     }
  144. }