<?php
namespace App\Entity;
use App\Repository\PlanModificationRequestRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PlanModificationRequestRepository::class)
*/
class PlanModificationRequest
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Project::class, inversedBy="planModificationRequests")
* @ORM\JoinColumn(nullable=false)
*/
private $project;
/**
* @ORM\Column(type="text")
*/
private $comment;
/**
* @ORM\ManyToOne(targetEntity=User::class)
* @ORM\JoinColumn(nullable=false)
*/
private $created_by;
/**
* @ORM\Column(type="datetime")
*/
private $created_at;
/**
* @ORM\Column(type="integer")
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity=User::class)
*/
private $approved_by;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $approved_at;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $approver_comment;
public function getId(): ?int
{
return $this->id;
}
public function getProject(): ?Project
{
return $this->project;
}
public function setProject(?Project $project): self
{
$this->project = $project;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(string $comment): self
{
$this->comment = $comment;
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 getStatus(): ?int
{
return $this->status;
}
public function setStatus(int $status): self
{
$this->status = $status;
return $this;
}
public function getApprovedBy(): ?User
{
return $this->approved_by;
}
public function setApprovedBy(?User $approved_by): self
{
$this->approved_by = $approved_by;
return $this;
}
public function getApprovedAt(): ?\DateTimeInterface
{
return $this->approved_at;
}
public function setApprovedAt(\DateTimeInterface $approved_at): self
{
$this->approved_at = $approved_at;
return $this;
}
public function getApproverComment(): ?string
{
return $this->approver_comment;
}
public function setApproverComment(?string $approver_comment): self
{
$this->approver_comment = $approver_comment;
return $this;
}
}