src/Entity/ProjectPlanRevision.php line 11

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