src/Entity/FrequentQuestion.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FrequentQuestionRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Blameable\Traits\BlameableEntity;
  7. use Gedmo\Timestampable\Traits\TimestampableEntity;
  8. #[ORM\Entity(repositoryClassFrequentQuestionRepository::class)]
  9. class FrequentQuestion
  10. {
  11.     use BlameableEntity//Hook blameable behaviour. Updates createdBy, updatedBy fields
  12.     use TimestampableEntity//Hook timestampable behaviour. Updates createdAt, updatedAt fields 
  13.     
  14.     
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue(strategy"IDENTITY")]
  17.     #[ORM\Column]
  18.     private ?int $id null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $title null;
  21.     #[ORM\Column(typeTypes::TEXT)]
  22.     private ?string $content null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getTitle(): ?string
  28.     {
  29.         return $this->title;
  30.     }
  31.     public function setTitle(string $title): self
  32.     {
  33.         $this->title $title;
  34.         return $this;
  35.     }
  36.     public function getContent(): ?string
  37.     {
  38.         return $this->content;
  39.     }
  40.     public function setContent(string $content): self
  41.     {
  42.         $this->content $content;
  43.         return $this;
  44.     }
  45. }