<?php
namespace App\Entity;
use App\Repository\ProjectPlanStatusRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProjectPlanStatusRepository::class)
*/
class ProjectPlanStatus
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $decision;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $justification;
/**
* @ORM\ManyToOne(targetEntity=User::class)
* @ORM\JoinColumn(nullable=false)
*/
private $created_by;
/**
* @ORM\Column(type="datetime")
*/
private $created_at;
/**
* @ORM\ManyToOne(targetEntity=Project::class, inversedBy="projectPlanStatuses")
* @ORM\JoinColumn(nullable=false)
*/
private $project;
public function getId(): ?int
{
return $this->id;
}
public function getDecision(): ?int
{
return $this->decision;
}
public function setDecision(int $decision): self
{
$this->decision = $decision;
return $this;
}
public function getJustification(): ?string
{
return $this->justification;
}
public function setJustification(?string $justification): self
{
$this->justification = $justification;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->created_by;
}
public function setCreatedBy(?User $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeInterface $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getProject(): ?Project
{
return $this->project;
}
public function setProject(?Project $project): self
{
$this->project = $project;
return $this;
}
}