<?php
namespace App\Entity;
use App\Repository\MachineTimeMatrixRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=MachineTimeMatrixRepository::class)
*/
class MachineTimeMatrix
{
/**
* @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 $rate;
/**
* @ORM\ManyToOne(targetEntity=Machine::class, inversedBy="machineTimeMatrices")
* @ORM\JoinColumn(nullable=false)
*/
private $machine;
/**
* @ORM\Column(type="integer")
*/
private $setupTime;
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 getRate(): ?string
{
return $this->rate;
}
public function setRate(string $rate): self
{
$this->rate = $rate;
return $this;
}
public function getMachine(): ?Machine
{
return $this->machine;
}
public function setMachine(?Machine $machine): self
{
$this->machine = $machine;
return $this;
}
public function getSetupTime(): ?int
{
return $this->setupTime;
}
public function setSetupTime(int $setupTime): self
{
$this->setupTime = $setupTime;
return $this;
}
}