src/Entity/Otpusk/GeoSeoUrlTranslation.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Otpusk;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  6. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  7. /**
  8.  * @ORM\Entity
  9.  */
  10. class GeoSeoUrlTranslation implements TranslationInterface
  11. {
  12.     use TranslationTrait;
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\Column(type="integer")
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=1024)
  21.      */
  22.     protected $title;
  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): void
  32.     {
  33.         $this->title $title;
  34.     }
  35. }