src/Entity/PriceMatrix.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PriceMatrixRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PriceMatrixRepository::class)
  8.  */
  9. class PriceMatrix
  10. {
  11.     use TimestampableEntity;
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private $startQty;
  22.     /**
  23.      * @ORM\Column(type="decimal", precision=10, scale=3)
  24.      */ 
  25.     private $admin;
  26.     /**
  27.      * @ORM\Column(type="decimal", precision=10, scale=3)
  28.      */
  29.     private $sales;
  30.     /**
  31.      * @ORM\Column(type="decimal", precision=10, scale=3)
  32.      */
  33.     private $overheads;
  34.     /**
  35.      * @ORM\Column(type="decimal", precision=10, scale=3)
  36.      */
  37.     private $profit;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Calculator::class, inversedBy="priceMatrices", cascade={"persist"})
  40.      * @ORM\JoinColumn(nullable=true)
  41.      */
  42.     private $calculator;
  43.     /**
  44.      * @ORM\Column(type="decimal", precision=10, scale=3, nullable=true)
  45.      */
  46.     private $profitTop;
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getStartQty(): ?int
  52.     {
  53.         return $this->startQty;
  54.     }
  55.     public function setStartQty(int $startQty): self
  56.     {
  57.         $this->startQty $startQty;
  58.         return $this;
  59.     }
  60.     public function getAdmin(): ?string
  61.     {
  62.         return $this->admin;
  63.     }
  64.     public function setAdmin(string $admin): self
  65.     {
  66.         $this->admin $admin;
  67.         return $this;
  68.     }
  69.     public function getSales(): ?string
  70.     {
  71.         return $this->sales;
  72.     }
  73.     public function setSales(string $sales): self
  74.     {
  75.         $this->sales $sales;
  76.         return $this;
  77.     }
  78.     public function getOverheads(): ?string
  79.     {
  80.         return $this->overheads;
  81.     }
  82.     public function setOverheads(string $overheads): self
  83.     {
  84.         $this->overheads $overheads;
  85.         return $this;
  86.     }
  87.     public function getProfit(): ?string
  88.     {
  89.         return $this->profit;
  90.     }
  91.     public function setProfit(string $profit): self
  92.     {
  93.         $this->profit $profit;
  94.         return $this;
  95.     }
  96.     public function getCalculator(): ?Calculator
  97.     {
  98.         return $this->calculator;
  99.     }
  100.     public function setCalculator(?Calculator $calculator): self
  101.     {
  102.         $this->calculator $calculator;
  103.         return $this;
  104.     }
  105.     public function getProfitTop(): ?string
  106.     {
  107.         return $this->profitTop;
  108.     }
  109.     public function setProfitTop(?string $profitTop): self
  110.     {
  111.         $this->profitTop $profitTop;
  112.         return $this;
  113.     }
  114. }