src/Entity/RFSolicitudCompraCotizacion.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RFSolicitudCompraCotizacionRepository;
  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_solicitud_compra_cotizacion')]
  9. #[ORM\Entity(repositoryClassRFSolicitudCompraCotizacionRepository::class)]
  10. class RFSolicitudCompraCotizacion
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'solicitudCompraCotizaciones')]
  17.     private ?RFSolicitudCompra $solicitudCompra null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $proveedor null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $descripcion null;
  22.     #[ORM\Column]
  23.     private ?float $cantidad null;
  24.     #[ORM\Column]
  25.     private ?float $valorUnitario null;
  26.     #[ORM\Column]
  27.     private ?float $valorTotal null;
  28.     #[ORM\Column(typeTypes::TEXT)]
  29.     private ?string $observacion null;
  30.     #[ORM\Column(length255)]
  31.     private ?string $cotizacion null;
  32.     #[ORM\Column(typeTypes::TEXT)]
  33.     private ?string $observacionCotizacion null;
  34.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  35.     private ?\DateTimeInterface $createAt null;
  36.     #[ORM\Column(length50)]
  37.     private ?string $createUser null;
  38.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  39.     private ?\DateTimeInterface $updateAt null;
  40.     #[ORM\Column(length50)]
  41.     private ?string $updateUser null;
  42.     #[ORM\OneToMany(mappedBy'proveedor'targetEntityRFCompraProveedorItems::class)]
  43.     private Collection $rFCompraProveedorItems;
  44.     public function __construct()
  45.     {
  46.         $this->rFCompraProveedorItems = new ArrayCollection();
  47.     }
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getSolicitudCompra(): ?RFSolicitudCompra
  53.     {
  54.         return $this->solicitudCompra;
  55.     }
  56.     public function setSolicitudCompra(?RFSolicitudCompra $solicitudCompra): static
  57.     {
  58.         $this->solicitudCompra $solicitudCompra;
  59.         return $this;
  60.     }
  61.     public function getProveedor(): ?string
  62.     {
  63.         return $this->proveedor;
  64.     }
  65.     public function setProveedor(string $proveedor): static
  66.     {
  67.         $this->proveedor $proveedor;
  68.         return $this;
  69.     }
  70.     public function getDescripcion(): ?string
  71.     {
  72.         return $this->descripcion;
  73.     }
  74.     public function setDescripcion(string $descripcion): static
  75.     {
  76.         $this->descripcion $descripcion;
  77.         return $this;
  78.     }
  79.     public function getCantidad(): ?float
  80.     {
  81.         return $this->cantidad;
  82.     }
  83.     public function setCantidad(float $cantidad): static
  84.     {
  85.         $this->cantidad $cantidad;
  86.         return $this;
  87.     }
  88.     public function getValorUnitario(): ?float
  89.     {
  90.         return $this->valorUnitario;
  91.     }
  92.     public function setValorUnitario(float $valorUnitario): static
  93.     {
  94.         $this->valorUnitario $valorUnitario;
  95.         return $this;
  96.     }
  97.     public function getValorTotal(): ?float
  98.     {
  99.         return $this->valorTotal;
  100.     }
  101.     public function setValorTotal(float $valorTotal): static
  102.     {
  103.         $this->valorTotal $valorTotal;
  104.         return $this;
  105.     }
  106.     public function getObservacion(): ?string
  107.     {
  108.         return $this->observacion;
  109.     }
  110.     public function setObservacion(string $observacion): static
  111.     {
  112.         $this->observacion $observacion;
  113.         return $this;
  114.     }
  115.     public function getCotizacion(): ?string
  116.     {
  117.         return $this->cotizacion;
  118.     }
  119.     public function setCotizacion(string $cotizacion): static
  120.     {
  121.         $this->cotizacion $cotizacion;
  122.         return $this;
  123.     }
  124.     public function getObservacionCotizacion(): ?string
  125.     {
  126.         return $this->observacionCotizacion;
  127.     }
  128.     public function setObservacionCotizacion(string $observacionCotizacion): static
  129.     {
  130.         $this->observacionCotizacion $observacionCotizacion;
  131.         return $this;
  132.     }
  133.     public function getCreateAt(): ?\DateTimeInterface
  134.     {
  135.         return $this->createAt;
  136.     }
  137.     public function setCreateAt(\DateTimeInterface $createAt): static
  138.     {
  139.         $this->createAt $createAt;
  140.         return $this;
  141.     }
  142.     public function getCreateUser(): ?string
  143.     {
  144.         return $this->createUser;
  145.     }
  146.     public function setCreateUser(string $createUser): static
  147.     {
  148.         $this->createUser $createUser;
  149.         return $this;
  150.     }
  151.     public function getUpdateAt(): ?\DateTimeInterface
  152.     {
  153.         return $this->updateAt;
  154.     }
  155.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  156.     {
  157.         $this->updateAt $updateAt;
  158.         return $this;
  159.     }
  160.     public function getUpdateUser(): ?string
  161.     {
  162.         return $this->updateUser;
  163.     }
  164.     public function setUpdateUser(string $updateUser): static
  165.     {
  166.         $this->updateUser $updateUser;
  167.         return $this;
  168.     }
  169.     /**
  170.      * @return Collection<int, RFCompraProveedorItems>
  171.      */
  172.     public function getRFCompraProveedorItems(): Collection
  173.     {
  174.         return $this->rFCompraProveedorItems;
  175.     }
  176.     public function addRFCompraProveedorItem(RFCompraProveedorItems $rFCompraProveedorItem): static
  177.     {
  178.         if (!$this->rFCompraProveedorItems->contains($rFCompraProveedorItem)) {
  179.             $this->rFCompraProveedorItems->add($rFCompraProveedorItem);
  180.             $rFCompraProveedorItem->setProveedor($this);
  181.         }
  182.         return $this;
  183.     }
  184.     public function removeRFCompraProveedorItem(RFCompraProveedorItems $rFCompraProveedorItem): static
  185.     {
  186.         if ($this->rFCompraProveedorItems->removeElement($rFCompraProveedorItem)) {
  187.             // set the owning side to null (unless already changed)
  188.             if ($rFCompraProveedorItem->getProveedor() === $this) {
  189.                 $rFCompraProveedorItem->setProveedor(null);
  190.             }
  191.         }
  192.         return $this;
  193.     }
  194. }