src/Entity/RFOrdenCompraItem.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RFOrdenCompraItemRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Table(name'rf_orden_compra_item')]
  7. #[ORM\Entity(repositoryClassRFOrdenCompraItemRepository::class)]
  8. class RFOrdenCompraItem {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'ordenCompraItems')]
  14.     private ?RFOrdenCompra $ordenCompra null;
  15.     #[ORM\Column(length50)]
  16.     private ?string $item null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $referencia null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $descripcion null;
  21.     #[ORM\Column]
  22.     private ?float $cantidad null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $unidadMedida null;
  25.     #[ORM\Column]
  26.     private ?float $valorUnitario null;
  27.     #[ORM\Column]
  28.     private ?float $valorTotal null;
  29.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  30.     private ?\DateTimeInterface $createAt null;
  31.     #[ORM\Column(length50)]
  32.     private ?string $createUser null;
  33.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  34.     private ?\DateTimeInterface $updateAt null;
  35.     #[ORM\Column(length50)]
  36.     private ?string $updateUser null;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?bool $activoFijo null;
  39.     #[ORM\Column]
  40.     private ?float $iva null;
  41.     #[ORM\Column]
  42.     private ?float $valorIva null;
  43.     #[ORM\Column]
  44.     private ?float $subTotal null;
  45.     public function getId(): ?int {
  46.         return $this->id;
  47.     }
  48.     public function getOrdenCompra(): ?RFOrdenCompra {
  49.         return $this->ordenCompra;
  50.     }
  51.     public function setOrdenCompra(?RFOrdenCompra $ordenCompra): static {
  52.         $this->ordenCompra $ordenCompra;
  53.         return $this;
  54.     }
  55.     public function getItem(): ?string {
  56.         return $this->item;
  57.     }
  58.     public function setItem(string $item): static {
  59.         $this->item $item;
  60.         return $this;
  61.     }
  62.     public function getReferencia(): ?string {
  63.         return $this->referencia;
  64.     }
  65.     public function setReferencia(string $referencia): static {
  66.         $this->referencia $referencia;
  67.         return $this;
  68.     }
  69.     public function getDescripcion(): ?string {
  70.         return $this->descripcion;
  71.     }
  72.     public function setDescripcion(string $descripcion): static {
  73.         $this->descripcion $descripcion;
  74.         return $this;
  75.     }
  76.     public function getCantidad(): ?float {
  77.         return $this->cantidad;
  78.     }
  79.     public function setCantidad(float $cantidad): static {
  80.         $this->cantidad $cantidad;
  81.         return $this;
  82.     }
  83.     public function getUnidadMedida(): ?string {
  84.         return $this->unidadMedida;
  85.     }
  86.     public function setUnidadMedida(string $unidadMedida): static {
  87.         $this->unidadMedida $unidadMedida;
  88.         return $this;
  89.     }
  90.     public function getValorUnitario(): ?float {
  91.         return $this->valorUnitario;
  92.     }
  93.     public function setValorUnitario(float $valorUnitario): static {
  94.         $this->valorUnitario $valorUnitario;
  95.         return $this;
  96.     }
  97.     public function getValorTotal(): ?float {
  98.         return $this->valorTotal;
  99.     }
  100.     public function setValorTotal(float $valorTotal): static {
  101.         $this->valorTotal $valorTotal;
  102.         return $this;
  103.     }
  104.     public function getCreateAt(): ?\DateTimeInterface {
  105.         return $this->createAt;
  106.     }
  107.     public function setCreateAt(\DateTimeInterface $createAt): static {
  108.         $this->createAt $createAt;
  109.         return $this;
  110.     }
  111.     public function getCreateUser(): ?string {
  112.         return $this->createUser;
  113.     }
  114.     public function setCreateUser(string $createUser): static {
  115.         $this->createUser $createUser;
  116.         return $this;
  117.     }
  118.     public function getUpdateAt(): ?\DateTimeInterface {
  119.         return $this->updateAt;
  120.     }
  121.     public function setUpdateAt(\DateTimeInterface $updateAt): static {
  122.         $this->updateAt $updateAt;
  123.         return $this;
  124.     }
  125.     public function getUpdateUser(): ?string {
  126.         return $this->updateUser;
  127.     }
  128.     public function setUpdateUser(string $updateUser): static {
  129.         $this->updateUser $updateUser;
  130.         return $this;
  131.     }
  132.     public function isActivoFijo(): ?bool
  133.     {
  134.         return $this->activoFijo;
  135.     }
  136.     public function setActivoFijo(?bool $activoFijo): static
  137.     {
  138.         $this->activoFijo $activoFijo;
  139.         return $this;
  140.     }
  141.     public function getIva(): ?float
  142.     {
  143.         return $this->iva;
  144.     }
  145.     public function setIva(float $iva): static
  146.     {
  147.         $this->iva $iva;
  148.         return $this;
  149.     }
  150.     public function getValorIva(): ?float
  151.     {
  152.         return $this->valorIva;
  153.     }
  154.     public function setValorIva(float $valorIva): static
  155.     {
  156.         $this->valorIva $valorIva;
  157.         return $this;
  158.     }
  159.     public function getSubTotal(): ?float
  160.     {
  161.         return $this->subTotal;
  162.     }
  163.     public function setSubTotal(float $subTotal): static
  164.     {
  165.         $this->subTotal $subTotal;
  166.         return $this;
  167.     }
  168. }