src/Entity/ActivityChat.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ActivityChatRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ActivityChatRepository::class)
  7.  */
  8. class ActivityChat
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="text")
  18.      */
  19.     private $content;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=User::class)
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $posted_by;
  25.     /**
  26.      * @ORM\Column(type="datetime")
  27.      */
  28.     private $posted_at;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=ProjectCollaborationTopic::class, inversedBy="activityChats")
  31.      * @ORM\JoinColumn(nullable=false)
  32.      */
  33.     private $topic;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getContent(): ?string
  39.     {
  40.         return $this->content;
  41.     }
  42.     public function setContent(string $content): self
  43.     {
  44.         $this->content $content;
  45.         return $this;
  46.     }
  47.     public function getPostedBy(): ?User
  48.     {
  49.         return $this->posted_by;
  50.     }
  51.     public function setPostedBy(?User $posted_by): self
  52.     {
  53.         $this->posted_by $posted_by;
  54.         return $this;
  55.     }
  56.     public function getPostedAt(): ?\DateTimeInterface
  57.     {
  58.         return $this->posted_at;
  59.     }
  60.     public function setPostedAt(\DateTimeInterface $posted_at): self
  61.     {
  62.         $this->posted_at $posted_at;
  63.         return $this;
  64.     }
  65.     public function getTopic(): ?ProjectCollaborationTopic
  66.     {
  67.         return $this->topic;
  68.     }
  69.     public function setTopic(?ProjectCollaborationTopic $topic): self
  70.     {
  71.         $this->topic $topic;
  72.         return $this;
  73.     }
  74. }