src/Entity/FaqCategoriesTranslation.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Sulu\Component\Persistence\Model\AuditableInterface;
  6. use Sulu\Component\Persistence\Model\AuditableTrait;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\FaqCategoriesTranslationRepository")
  9.  */
  10. class FaqCategoriesTranslation implements AuditableInterface
  11. {
  12.     use AuditableTrait;
  13.     /**
  14.      * @var int|null
  15.      *
  16.      * @ORM\Id()
  17.      * @ORM\GeneratedValue()
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var FaqCategories
  23.      *
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\FaqCategories", inversedBy="translations")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $FaqCategories;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(type="string", length=5)
  32.      */
  33.     private $locale;
  34.     /**
  35.      * @var string|null
  36.      *
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $title;
  40.     /**
  41.      * @var string|null
  42.      *
  43.      * @ORM\Column(type="text", nullable=true)
  44.      */
  45.     private $description;
  46.     public function __construct(FaqCategories $FaqCategoriesstring $locale)
  47.     {
  48.         $this->FaqCategories $FaqCategories;
  49.         $this->locale $locale;
  50.     }
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getFaqCategories(): FaqCategories
  56.     {
  57.         return $this->FaqCategories;
  58.     }
  59.     public function getLocale(): string
  60.     {
  61.         return $this->locale;
  62.     }
  63.     public function getTitle(): ?string
  64.     {
  65.         return $this->title;
  66.     }
  67.     public function setTitle(?string $title): self
  68.     {
  69.         $this->title $title;
  70.         return $this;
  71.     }
  72.     public function getDescription(): ?string
  73.     {
  74.         return $this->description;
  75.     }
  76.     public function setDescription(?string $description): self
  77.     {
  78.         $this->description $description;
  79.         return $this;
  80.     }
  81. }