src/Entity/TaskCostMatrix.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TaskCostMatrixRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TaskCostMatrixRepository::class)
  8.  */
  9. class TaskCostMatrix
  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="taskCostMatrices")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $task;
  23.     /**
  24.      * @ORM\Column(type="integer")
  25.      */
  26.     private $startQty;
  27.     /**
  28.      * @ORM\Column(type="decimal", precision=10, scale=4)
  29.      */
  30.     private $cost;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getTask(): ?Task
  36.     {
  37.         return $this->task;
  38.     }
  39.     public function setTask(?Task $task): self
  40.     {
  41.         $this->task $task;
  42.         return $this;
  43.     }
  44.     public function getStartQty(): ?int
  45.     {
  46.         return $this->startQty;
  47.     }
  48.     public function setStartQty(int $startQty): self
  49.     {
  50.         $this->startQty $startQty;
  51.         return $this;
  52.     }
  53.     public function getCost(): ?string
  54.     {
  55.         return $this->cost;
  56.     }
  57.     public function setCost(string $cost): self
  58.     {
  59.         $this->cost $cost;
  60.         return $this;
  61.     }
  62. }