<?php
namespace App\Entity;
use App\Repository\TaskCostMatrixRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* @ORM\Entity(repositoryClass=TaskCostMatrixRepository::class)
*/
class TaskCostMatrix
{
use TimestampableEntity;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Task::class, inversedBy="taskCostMatrices")
* @ORM\JoinColumn(nullable=false)
*/
private $task;
/**
* @ORM\Column(type="integer")
*/
private $startQty;
/**
* @ORM\Column(type="decimal", precision=10, scale=4)
*/
private $cost;
public function getId(): ?int
{
return $this->id;
}
public function getTask(): ?Task
{
return $this->task;
}
public function setTask(?Task $task): self
{
$this->task = $task;
return $this;
}
public function getStartQty(): ?int
{
return $this->startQty;
}
public function setStartQty(int $startQty): self
{
$this->startQty = $startQty;
return $this;
}
public function getCost(): ?string
{
return $this->cost;
}
public function setCost(string $cost): self
{
$this->cost = $cost;
return $this;
}
}