src/Entity/ProjectPlanStatus.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectPlanStatusRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProjectPlanStatusRepository::class)
  7.  */
  8. class ProjectPlanStatus
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $decision;
  20.     /**
  21.      * @ORM\Column(type="text", nullable=true)
  22.      */
  23.     private $justification;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=User::class)
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $created_by;
  29.     /**
  30.      * @ORM\Column(type="datetime")
  31.      */
  32.     private $created_at;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=Project::class, inversedBy="projectPlanStatuses")
  35.      * @ORM\JoinColumn(nullable=false)
  36.      */
  37.     private $project;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getDecision(): ?int
  43.     {
  44.         return $this->decision;
  45.     }
  46.     public function setDecision(int $decision): self
  47.     {
  48.         $this->decision $decision;
  49.         return $this;
  50.     }
  51.     public function getJustification(): ?string
  52.     {
  53.         return $this->justification;
  54.     }
  55.     public function setJustification(?string $justification): self
  56.     {
  57.         $this->justification $justification;
  58.         return $this;
  59.     }
  60.     public function getCreatedBy(): ?User
  61.     {
  62.         return $this->created_by;
  63.     }
  64.     public function setCreatedBy(?User $created_by): self
  65.     {
  66.         $this->created_by $created_by;
  67.         return $this;
  68.     }
  69.     public function getCreatedAt(): ?\DateTimeInterface
  70.     {
  71.         return $this->created_at;
  72.     }
  73.     public function setCreatedAt(\DateTimeInterface $created_at): self
  74.     {
  75.         $this->created_at $created_at;
  76.         return $this;
  77.     }
  78.     public function getProject(): ?Project
  79.     {
  80.         return $this->project;
  81.     }
  82.     public function setProject(?Project $project): self
  83.     {
  84.         $this->project $project;
  85.         return $this;
  86.     }
  87. }