<?php
namespace App\Entity;
use App\Repository\MachineCostMatrixRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* @ORM\Entity(repositoryClass=MachineCostMatrixRepository::class)
*/
class MachineCostMatrix
{
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=4)
*/
private $cost;
/**
* @ORM\ManyToOne(targetEntity=Machine::class, inversedBy="machineCostMatrices")
* @ORM\JoinColumn(nullable=false)
*/
private $machine;
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 getCost(): ?string
{
return $this->cost;
}
public function setCost(string $cost): self
{
$this->cost = $cost;
return $this;
}
public function getMachine(): ?Machine
{
return $this->machine;
}
public function setMachine(?Machine $machine): self
{
$this->machine = $machine;
return $this;
}
}