<?php
namespace App\Entity;
use App\Repository\PriceMatrixRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* @ORM\Entity(repositoryClass=PriceMatrixRepository::class)
*/
class PriceMatrix
{
use TimestampableEntity;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $startQty;
/**
* @ORM\Column(type="decimal", precision=10, scale=3)
*/
private $admin;
/**
* @ORM\Column(type="decimal", precision=10, scale=3)
*/
private $sales;
/**
* @ORM\Column(type="decimal", precision=10, scale=3)
*/
private $overheads;
/**
* @ORM\Column(type="decimal", precision=10, scale=3)
*/
private $profit;
/**
* @ORM\ManyToOne(targetEntity=Calculator::class, inversedBy="priceMatrices", cascade={"persist"})
* @ORM\JoinColumn(nullable=true)
*/
private $calculator;
/**
* @ORM\Column(type="decimal", precision=10, scale=3, nullable=true)
*/
private $profitTop;
public function getId(): ?int
{
return $this->id;
}
public function getStartQty(): ?int
{
return $this->startQty;
}
public function setStartQty(int $startQty): self
{
$this->startQty = $startQty;
return $this;
}
public function getAdmin(): ?string
{
return $this->admin;
}
public function setAdmin(string $admin): self
{
$this->admin = $admin;
return $this;
}
public function getSales(): ?string
{
return $this->sales;
}
public function setSales(string $sales): self
{
$this->sales = $sales;
return $this;
}
public function getOverheads(): ?string
{
return $this->overheads;
}
public function setOverheads(string $overheads): self
{
$this->overheads = $overheads;
return $this;
}
public function getProfit(): ?string
{
return $this->profit;
}
public function setProfit(string $profit): self
{
$this->profit = $profit;
return $this;
}
public function getCalculator(): ?Calculator
{
return $this->calculator;
}
public function setCalculator(?Calculator $calculator): self
{
$this->calculator = $calculator;
return $this;
}
public function getProfitTop(): ?string
{
return $this->profitTop;
}
public function setProfitTop(?string $profitTop): self
{
$this->profitTop = $profitTop;
return $this;
}
}