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.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getStartQty(): ?int
  48.     {
  49.         return $this->startQty;
  50.     }
  51.     public function setStartQty(int $startQty): self
  52.     {
  53.         $this->startQty $startQty;
  54.         return $this;
  55.     }
  56.     public function getAdmin(): ?string
  57.     {
  58.         return $this->admin;
  59.     }
  60.     public function setAdmin(string $admin): self
  61.     {
  62.         $this->admin $admin;
  63.         return $this;
  64.     }
  65.     public function getSales(): ?string
  66.     {
  67.         return $this->sales;
  68.     }
  69.     public function setSales(string $sales): self
  70.     {
  71.         $this->sales $sales;
  72.         return $this;
  73.     }
  74.     public function getOverheads(): ?string
  75.     {
  76.         return $this->overheads;
  77.     }
  78.     public function setOverheads(string $overheads): self
  79.     {
  80.         $this->overheads $overheads;
  81.         return $this;
  82.     }
  83.     public function getProfit(): ?string
  84.     {
  85.         return $this->profit;
  86.     }
  87.     public function setProfit(string $profit): self
  88.     {
  89.         $this->profit $profit;
  90.         return $this;
  91.     }
  92.     public function getCalculator(): ?Calculator
  93.     {
  94.         return $this->calculator;
  95.     }
  96.     public function setCalculator(?Calculator $calculator): self
  97.     {
  98.         $this->calculator $calculator;
  99.         return $this;
  100.     }
  101. }