src/Entity/PlanModificationRequest.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PlanModificationRequestRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PlanModificationRequestRepository::class)
  7.  */
  8. class PlanModificationRequest
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Project::class, inversedBy="planModificationRequests")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $project;
  21.     /**
  22.      * @ORM\Column(type="text")
  23.      */
  24.     private $comment;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=User::class)
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private $created_by;
  30.     /**
  31.      * @ORM\Column(type="datetime")
  32.      */
  33.     private $created_at;
  34.     /**
  35.      * @ORM\Column(type="integer")
  36.      */
  37.     private $status;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=User::class)
  40.      */
  41.     private $approved_by;
  42.     /**
  43.      * @ORM\Column(type="datetime", nullable=true)
  44.      */
  45.     private $approved_at;
  46.     /**
  47.      * @ORM\Column(type="text", nullable=true)
  48.      */
  49.     private $approver_comment;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getProject(): ?Project
  55.     {
  56.         return $this->project;
  57.     }
  58.     public function setProject(?Project $project): self
  59.     {
  60.         $this->project $project;
  61.         return $this;
  62.     }
  63.     public function getComment(): ?string
  64.     {
  65.         return $this->comment;
  66.     }
  67.     public function setComment(string $comment): self
  68.     {
  69.         $this->comment $comment;
  70.         return $this;
  71.     }
  72.     public function getCreatedBy(): ?User
  73.     {
  74.         return $this->created_by;
  75.     }
  76.     public function setCreatedBy(?User $created_by): self
  77.     {
  78.         $this->created_by $created_by;
  79.         return $this;
  80.     }
  81.     public function getCreatedAt(): ?\DateTimeInterface
  82.     {
  83.         return $this->created_at;
  84.     }
  85.     public function setCreatedAt(\DateTimeInterface $created_at): self
  86.     {
  87.         $this->created_at $created_at;
  88.         return $this;
  89.     }
  90.     public function getStatus(): ?int
  91.     {
  92.         return $this->status;
  93.     }
  94.     public function setStatus(int $status): self
  95.     {
  96.         $this->status $status;
  97.         return $this;
  98.     }
  99.     public function getApprovedBy(): ?User
  100.     {
  101.         return $this->approved_by;
  102.     }
  103.     public function setApprovedBy(?User $approved_by): self
  104.     {
  105.         $this->approved_by $approved_by;
  106.         return $this;
  107.     }
  108.     public function getApprovedAt(): ?\DateTimeInterface
  109.     {
  110.         return $this->approved_at;
  111.     }
  112.     public function setApprovedAt(\DateTimeInterface $approved_at): self
  113.     {
  114.         $this->approved_at $approved_at;
  115.         return $this;
  116.     }
  117.     public function getApproverComment(): ?string
  118.     {
  119.         return $this->approver_comment;
  120.     }
  121.     public function setApproverComment(?string $approver_comment): self
  122.     {
  123.         $this->approver_comment $approver_comment;
  124.         return $this;
  125.     }
  126. }