src/Entity/Comment.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCommentRepository::class)]
  6. class Comment
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'text')]
  13.     private $message;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $name;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $email;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $website;
  20.     #[ORM\Column(type'boolean')]
  21.     private $activated;
  22.     #[ORM\ManyToOne(targetEntityArticle::class, inversedBy'comments')]
  23.     private $article;
  24.     #[ORM\Column(type'datetime'nullabletrue)]
  25.     private $createdAt;
  26.     #[ORM\Column(type'string'length255)]
  27.     private $status;
  28.     #[ORM\ManyToOne(targetEntityTutorial::class, inversedBy'comments')]
  29.     private $tutorial;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $language;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getMessage(): ?string
  37.     {
  38.         return $this->message;
  39.     }
  40.     public function setMessage(string $message): self
  41.     {
  42.         $this->message $message;
  43.         return $this;
  44.     }
  45.     public function getName(): ?string
  46.     {
  47.         return $this->name;
  48.     }
  49.     public function setName(string $name): self
  50.     {
  51.         $this->name $name;
  52.         return $this;
  53.     }
  54.     public function getEmail(): ?string
  55.     {
  56.         return $this->email;
  57.     }
  58.     public function setEmail(string $email): self
  59.     {
  60.         $this->email $email;
  61.         return $this;
  62.     }
  63.     public function getWebsite(): ?string
  64.     {
  65.         return $this->website;
  66.     }
  67.     public function setWebsite(?string $website): self
  68.     {
  69.         $this->website $website;
  70.         return $this;
  71.     }
  72.     public function getActivated(): ?bool
  73.     {
  74.         return $this->activated;
  75.     }
  76.     public function setActivated(bool $activated): self
  77.     {
  78.         $this->activated $activated;
  79.         return $this;
  80.     }
  81.     public function getArticle(): ?Article
  82.     {
  83.         return $this->article;
  84.     }
  85.     public function setArticle(?Article $article): self
  86.     {
  87.         $this->article $article;
  88.         return $this;
  89.     }
  90.     public function getCreatedAt(): ?\DateTimeInterface
  91.     {
  92.         return $this->createdAt;
  93.     }
  94.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  95.     {
  96.         $this->createdAt $createdAt;
  97.         return $this;
  98.     }
  99.     public function getStatus(): ?string
  100.     {
  101.         return $this->status;
  102.     }
  103.     public function setStatus(string $status): self
  104.     {
  105.         $this->status $status;
  106.         return $this;
  107.     }
  108.     public function getTutorial(): ?Tutorial
  109.     {
  110.         return $this->tutorial;
  111.     }
  112.     public function setTutorial(?Tutorial $tutorial): self
  113.     {
  114.         $this->tutorial $tutorial;
  115.         return $this;
  116.     }
  117.     public function getLanguage(): ?string
  118.     {
  119.         return $this->language;
  120.     }
  121.     public function setLanguage(?string $language): self
  122.     {
  123.         $this->language $language;
  124.         return $this;
  125.     }
  126. }