src/Entity/RFSolicitudCompraItem.php line 11

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