src/Entity/ProjectMemberHistory.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectMemberHistoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProjectMemberHistoryRepository::class)
  7.  */
  8. class ProjectMemberHistory
  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="projectMemberHistories")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $project;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=User::class)
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $user;
  26.     /**
  27.      * @ORM\Column(type="date")
  28.      */
  29.     private $start_date;
  30.     /**
  31.      * @ORM\Column(type="date")
  32.      */
  33.     private $end_date;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=User::class)
  36.      * @ORM\JoinColumn(nullable=false)
  37.      */
  38.     private $created_by;
  39.     /**
  40.      * @ORM\Column(type="datetime")
  41.      */
  42.     private $created_at;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getProject(): ?Project
  48.     {
  49.         return $this->project;
  50.     }
  51.     public function setProject(?Project $project): self
  52.     {
  53.         $this->project $project;
  54.         return $this;
  55.     }
  56.     public function getUser(): ?User
  57.     {
  58.         return $this->user;
  59.     }
  60.     public function setUser(?User $user): self
  61.     {
  62.         $this->user $user;
  63.         return $this;
  64.     }
  65.     public function getStartDate(): ?\DateTimeInterface
  66.     {
  67.         return $this->start_date;
  68.     }
  69.     public function setStartDate(\DateTimeInterface $start_date): self
  70.     {
  71.         $this->start_date $start_date;
  72.         return $this;
  73.     }
  74.     public function getEndDate(): ?\DateTimeInterface
  75.     {
  76.         return $this->end_date;
  77.     }
  78.     public function setEndDate(\DateTimeInterface $end_date): self
  79.     {
  80.         $this->end_date $end_date;
  81.         return $this;
  82.     }
  83.     public function getCreatedBy(): ?User
  84.     {
  85.         return $this->created_by;
  86.     }
  87.     public function setCreatedBy(?User $created_by): self
  88.     {
  89.         $this->created_by $created_by;
  90.         return $this;
  91.     }
  92.     public function getCreatedAt(): ?\DateTimeInterface
  93.     {
  94.         return $this->created_at;
  95.     }
  96.     public function setCreatedAt(\DateTimeInterface $created_at): self
  97.     {
  98.         $this->created_at $created_at;
  99.         return $this;
  100.     }
  101. }