src/Entity/TaskTimeMatrix.php line 12

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