src/Entity/MachineCostMatrix.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MachineCostMatrixRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. /**
  7.  * @ORM\Entity(repositoryClass=MachineCostMatrixRepository::class)
  8.  */
  9. class MachineCostMatrix
  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=4)
  24.      */
  25.     private $cost;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Machine::class, inversedBy="machineCostMatrices")
  28.      * @ORM\JoinColumn(nullable=false)
  29.      */
  30.     private $machine;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getStartQty(): ?int
  36.     {
  37.         return $this->startQty;
  38.     }
  39.     public function setStartQty(int $startQty): self
  40.     {
  41.         $this->startQty $startQty;
  42.         return $this;
  43.     }
  44.     public function getCost(): ?string
  45.     {
  46.         return $this->cost;
  47.     }
  48.     public function setCost(string $cost): self
  49.     {
  50.         $this->cost $cost;
  51.         return $this;
  52.     }
  53.     public function getMachine(): ?Machine
  54.     {
  55.         return $this->machine;
  56.     }
  57.     public function setMachine(?Machine $machine): self
  58.     {
  59.         $this->machine $machine;
  60.         return $this;
  61.     }
  62.     
  63. }