src/Entity/Otpusk/GeoBlockTranslation.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 GeoBlockTranslation 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, nullable=true)
  21.      */
  22.     protected $title;
  23.     /**
  24.      * @ORM\Column(type="text", nullable=true)
  25.      */
  26.     protected $content;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getTitle(): ?string
  32.     {
  33.         return $this->title;
  34.     }
  35.     public function setTitle(?string $title): void
  36.     {
  37.         $this->title $title;
  38.     }
  39.     public function getContent(): ?string
  40.     {
  41.         return $this->content;
  42.     }
  43.     public function setContent(?string $content): void
  44.     {
  45.         $this->content $content;
  46.     }
  47. }