src/Entity/StockTakeProducts.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StockTakeProductsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassStockTakeProductsRepository::class)]
  6. class StockTakeProducts extends BaseEntity
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private $name;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $code;
  16.     #[ORM\Column(type'float'nullabletrue)]
  17.     private $oldQuantity;
  18.     #[ORM\Column(type'float'nullabletrue)]
  19.     private $newQuantity;
  20.     #[ORM\Column(type'boolean'nullabletrue)]
  21.     private $locked;
  22.     #[ORM\ManyToOne(targetEntityStockTake::class, inversedBy'stockTakeProducts')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private $stockTake;
  25.     #[ORM\ManyToOne(targetEntityProduct::class, inversedBy'stockTakeProducts')]
  26.     #[ORM\JoinColumn(nullablefalse)]
  27.     private $product;
  28.     #[ORM\Column(type'boolean'nullabletrue)]
  29.     private $isPosted;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getName(): ?string
  35.     {
  36.         return $this->name;
  37.     }
  38.     public function setName(?string $name): self
  39.     {
  40.         $this->name $name;
  41.         return $this;
  42.     }
  43.     public function getCode(): ?string
  44.     {
  45.         return $this->code;
  46.     }
  47.     public function setCode(?string $code): self
  48.     {
  49.         $this->code $code;
  50.         return $this;
  51.     }
  52.     public function getOldQuantity(): ?float
  53.     {
  54.         return $this->oldQuantity;
  55.     }
  56.     public function setOldQuantity(?float $oldQuantity): self
  57.     {
  58.         $this->oldQuantity $oldQuantity;
  59.         return $this;
  60.     }
  61.     public function getNewQuantity(): ?float
  62.     {
  63.         return $this->newQuantity;
  64.     }
  65.     public function setNewQuantity(?float $newQuantity): self
  66.     {
  67.         $this->newQuantity $newQuantity;
  68.         return $this;
  69.     }
  70.     public function getStockTake(): ?StockTake
  71.     {
  72.         return $this->stockTake;
  73.     }
  74.     public function setStockTake(?StockTake $stockTake): self
  75.     {
  76.         $this->stockTake $stockTake;
  77.         return $this;
  78.     }
  79.     public function getProduct(): ?Product
  80.     {
  81.         return $this->product;
  82.     }
  83.     public function setProduct(?Product $product): self
  84.     {
  85.         $this->product $product;
  86.         return $this;
  87.     }
  88.     /**
  89.      * @return mixed
  90.      */
  91.     public function getLocked()
  92.     {
  93.         return $this->locked;
  94.     }
  95.     /**
  96.      * @param mixed $locked
  97.      */
  98.     public function setLocked($locked): void
  99.     {
  100.         $this->locked $locked;
  101.     }
  102.     public function isIsPosted(): ?bool
  103.     {
  104.         return $this->isPosted;
  105.     }
  106.     public function setIsPosted(?bool $isPosted): self
  107.     {
  108.         $this->isPosted $isPosted;
  109.         return $this;
  110.     }
  111.     #[ORM\Column(type'decimal'precision19scale4nullabletrue)]
  112.     private $priceFob;
  113.     #[ORM\Column(type'decimal'precision19scale4nullabletrue)]
  114.     private $priceNavlun;
  115.     public function getPriceFob(): ?float
  116.     {
  117.         return $this->priceFob;
  118.     }
  119.     public function setPriceFob(?float $priceFob): self
  120.     {
  121.         $this->priceFob $priceFob;
  122.         return $this;
  123.     }
  124.     public function getPriceNavlun(): ?float
  125.     {
  126.         return $this->priceNavlun;
  127.     }
  128.     public function setPriceNavlun(?float $priceNavlun): self
  129.     {
  130.         $this->priceNavlun $priceNavlun;
  131.         return $this;
  132.     }
  133. }