src/Entity/BuyInTurkey.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BuyInTurkeyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassBuyInTurkeyRepository::class)]
  6. class BuyInTurkey extends BaseEntity
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'float')]
  13.     private $quantity;
  14.     #[ORM\Column(name'total_purchase_quantity'type'float'nullabletrue)]
  15.     private $totalPurhcaseQuantity;
  16.     #[ORM\ManyToOne(targetEntityProduct::class, inversedBy'buyInTurkeys')]
  17.     private $product;
  18.     #[ORM\Column(name'buying_price'type'decimal'precision19scale4nullablefalse)]
  19.     private $buyingPrice;
  20.     #[ORM\Column(name'transport_price'type'decimal'precision19scale4nullablefalse)]
  21.     private $transportPrice;
  22.     #[ORM\Column(name'lashing'type'decimal'precision19scale4nullablefalse)]
  23.     private $lashing;
  24.     #[ORM\Column(name'customs_price'type'decimal'precision19scale4nullablefalse)]
  25.     private $customsPrice;
  26.     #[ORM\Column(name'price_fob'type'decimal'precision19scale4nullablefalse)]
  27.     private $priceFob;
  28.     #[ORM\Column(name'profit_margin'type'decimal'precision19scale4nullablefalse)]
  29.     private $profitMargin;
  30.     #[ORM\Column(name'invoice_number'type'string'nullabletrue)]
  31.     private $invoiceNumber;
  32.     #[ORM\Column(name'total_cost_price'type'decimal'precision19scale4nullablefalse)]
  33.     private $totalCostPrice;
  34.     #[ORM\Column(name'total_purchase_price'type'decimal'precision19scale4nullablefalse)]
  35.     private $totalPuchasePrice;
  36.     #[ORM\Column(name'buying_company'type'string')]
  37.     private $buyingCompany;
  38.     #[ORM\Column(name'buying_date'type'date_immutable'nullablefalse)]
  39.     private $buyingDate;
  40.     #[ORM\Column(name'is_transported'type'boolean'nullablefalse)]
  41.     private $isTransported;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getQuantity(): ?float
  47.     {
  48.         return $this->quantity;
  49.     }
  50.     public function setQuantity(float $quantity): self
  51.     {
  52.         $this->quantity $quantity;
  53.         return $this;
  54.     }
  55.     public function getBuyingPrice(): ?float
  56.     {
  57.         return $this->buyingPrice;
  58.     }
  59.     public function setBuyingPrice(float $buyingPrice): self
  60.     {
  61.         $this->buyingPrice $buyingPrice;
  62.         return $this;
  63.     }
  64.     public function getTransportPrice(): ?float
  65.     {
  66.         return $this->transportPrice;
  67.     }
  68.     public function setTransportPrice(float $transportPrice): self
  69.     {
  70.         $this->transportPrice $transportPrice;
  71.         return $this;
  72.     }
  73.     public function getLashing(): ?float
  74.     {
  75.         return $this->lashing;
  76.     }
  77.     public function setLashing(float $lashing): self
  78.     {
  79.         $this->lashing $lashing;
  80.         return $this;
  81.     }
  82.     public function getCustomsPrice(): ?float
  83.     {
  84.         return $this->customsPrice;
  85.     }
  86.     public function setCustomsPrice(float $customsPrice): self
  87.     {
  88.         $this->customsPrice $customsPrice;
  89.         return $this;
  90.     }
  91.     public function getPriceFob(): ?float
  92.     {
  93.         return $this->priceFob;
  94.     }
  95.     public function setPriceFob(float $priceFob): self
  96.     {
  97.         $this->priceFob $priceFob;
  98.         return $this;
  99.     }
  100.     public function getProfitMargin(): ?float
  101.     {
  102.         return $this->profitMargin;
  103.     }
  104.     public function setProfitMargin(float $profitMargin): self
  105.     {
  106.         $this->profitMargin $profitMargin;
  107.         return $this;
  108.     }
  109.     public function getInvoiceNumber(): ?string
  110.     {
  111.         return $this->invoiceNumber;
  112.     }
  113.     public function setInvoiceNumber(?string $invoiceNumber): self
  114.     {
  115.         $this->invoiceNumber $invoiceNumber;
  116.         return $this;
  117.     }
  118.     public function getTotalCostPrice(): ?float
  119.     {
  120.         return $this->totalCostPrice;
  121.     }
  122.     public function setTotalCostPrice(float $totalCostPrice): self
  123.     {
  124.         $this->totalCostPrice $totalCostPrice;
  125.         return $this;
  126.     }
  127.     /**
  128.      * @return mixed
  129.      */
  130.     public function getTotalPuchasePrice()
  131.     {
  132.         return $this->totalPuchasePrice;
  133.     }
  134.     /**
  135.      * @param mixed $totalPuchasePrice
  136.      */
  137.     public function setTotalPuchasePrice($totalPuchasePrice): void
  138.     {
  139.         $this->totalPuchasePrice $totalPuchasePrice;
  140.     }
  141.     public function getBuyingCompany(): ?string
  142.     {
  143.         return $this->buyingCompany;
  144.     }
  145.     public function setBuyingCompany(string $buyingCompany): self
  146.     {
  147.         $this->buyingCompany $buyingCompany;
  148.         return $this;
  149.     }
  150.     public function getBuyingDate(): ?\DateTimeImmutable
  151.     {
  152.         return $this->buyingDate;
  153.     }
  154.     public function setBuyingDate(\DateTimeImmutable $buyingDate): self
  155.     {
  156.         $this->buyingDate $buyingDate;
  157.         return $this;
  158.     }
  159.     public function isIsTransported(): ?bool
  160.     {
  161.         return $this->isTransported;
  162.     }
  163.     public function setIsTransported(bool $isTransported): self
  164.     {
  165.         $this->isTransported $isTransported;
  166.         return $this;
  167.     }
  168.     public function getProduct(): ?Product
  169.     {
  170.         return $this->product;
  171.     }
  172.     public function setProduct(?Product $product): self
  173.     {
  174.         $this->product $product;
  175.         return $this;
  176.     }
  177.     /**
  178.      * @return mixed
  179.      */
  180.     public function getTotalPurhcaseQuantity()
  181.     {
  182.         return $this->totalPurhcaseQuantity;
  183.     }
  184.     /**
  185.      * @param mixed $totalPurhcaseQuantity
  186.      */
  187.     public function setTotalPurhcaseQuantity($totalPurhcaseQuantity): void
  188.     {
  189.         $this->totalPurhcaseQuantity $totalPurhcaseQuantity;
  190.     }
  191. }