src/Entity/MachineTimeMatrix.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MachineTimeMatrixRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MachineTimeMatrixRepository::class)
  7.  */
  8. class MachineTimeMatrix
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $startQty;
  20.     /**
  21.      * @ORM\Column(type="decimal", precision=10, scale=4)
  22.      */
  23.     private $rate;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Machine::class, inversedBy="machineTimeMatrices")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $machine;
  29.     /**
  30.      * @ORM\Column(type="integer")
  31.      */
  32.     private $setupTime;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getStartQty(): ?int
  38.     {
  39.         return $this->startQty;
  40.     }
  41.     public function setStartQty(int $startQty): self
  42.     {
  43.         $this->startQty $startQty;
  44.         return $this;
  45.     }
  46.     public function getRate(): ?string
  47.     {
  48.         return $this->rate;
  49.     }
  50.     public function setRate(string $rate): self
  51.     {
  52.         $this->rate $rate;
  53.         return $this;
  54.     }
  55.     public function getMachine(): ?Machine
  56.     {
  57.         return $this->machine;
  58.     }
  59.     public function setMachine(?Machine $machine): self
  60.     {
  61.         $this->machine $machine;
  62.         return $this;
  63.     }
  64.     public function getSetupTime(): ?int
  65.     {
  66.         return $this->setupTime;
  67.     }
  68.     public function setSetupTime(int $setupTime): self
  69.     {
  70.         $this->setupTime $setupTime;
  71.         return $this;
  72.     }
  73. }