src/Entity/ProjectPlanComment.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectPlanCommentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProjectPlanCommentRepository::class)
  7.  */
  8. class ProjectPlanComment
  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="planComments")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $project;
  21.     /**
  22.      * @ORM\Column(type="integer")
  23.      */
  24.     private $entity;
  25.     /**
  26.      * @ORM\Column(type="text")
  27.      */
  28.     private $data;
  29.     /**
  30.      * @ORM\Column(type="integer")
  31.      */
  32.     private $data_id;
  33.     /**
  34.      * @ORM\Column(type="text")
  35.      */
  36.     private $comment;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=User::class)
  39.      * @ORM\JoinColumn(nullable=false)
  40.      */
  41.     private $created_by;
  42.     /**
  43.      * @ORM\Column(type="datetime")
  44.      */
  45.     private $created_at;
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getProject(): ?Project
  51.     {
  52.         return $this->project;
  53.     }
  54.     public function setProject(?Project $project): self
  55.     {
  56.         $this->project $project;
  57.         return $this;
  58.     }
  59.     public function getEntity(): ?int
  60.     {
  61.         return $this->entity;
  62.     }
  63.     public function setEntity(int $entity): self
  64.     {
  65.         $this->entity $entity;
  66.         return $this;
  67.     }
  68.     public function getData(): ?string
  69.     {
  70.         return $this->data;
  71.     }
  72.     public function setData(string $data): self
  73.     {
  74.         $this->data $data;
  75.         return $this;
  76.     }
  77.     public function getDataId(): ?int
  78.     {
  79.         return $this->data_id;
  80.     }
  81.     public function setDataId(int $data_id): self
  82.     {
  83.         $this->data_id $data_id;
  84.         return $this;
  85.     }
  86.     public function getComment(): ?string
  87.     {
  88.         return $this->comment;
  89.     }
  90.     public function setComment(string $comment): self
  91.     {
  92.         $this->comment $comment;
  93.         return $this;
  94.     }
  95.     public function getCreatedBy(): ?User
  96.     {
  97.         return $this->created_by;
  98.     }
  99.     public function setCreatedBy(?User $created_by): self
  100.     {
  101.         $this->created_by $created_by;
  102.         return $this;
  103.     }
  104.     public function getCreatedAt(): ?\DateTimeInterface
  105.     {
  106.         return $this->created_at;
  107.     }
  108.     public function setCreatedAt(\DateTimeInterface $created_at): self
  109.     {
  110.         $this->created_at $created_at;
  111.         return $this;
  112.     }
  113. }