|
- <?php
-
- namespace App\Entity\Site;
-
- use App\Repository\Site\BlockRepository;
- use Doctrine\ORM\Mapping as ORM;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
- use Lc\SovBundle\Model\File\FileInterface;
-
- /**
- * @ORM\Entity(repositoryClass=BlockRepository::class)
- */
- class BlockTranslation implements TranslationInterface
- {
- use TranslationTrait;
-
- /**
- * @ORM\Id
- * @ORM\GeneratedValue
- * @ORM\Column(type="integer")
- */
- private $id;
-
- /**
- * @ORM\Column(type="text", nullable=true)
- */
- private $title;
-
- /**
- * @ORM\Column(type="text", nullable=true)
- */
- private $subtitle;
-
- /**
- * @ORM\Column(type="text", nullable=true)
- */
- private $description;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\File\FileInterface", cascade={"persist", "remove"})
- */
- private $image;
-
- public function __toString()
- {
- return $this->title;
- }
-
- public function getId(): ?int
- {
- return $this->id;
- }
-
- public function getTitle(): ?string
- {
- return $this->title;
- }
-
- public function setTitle(?string $title): self
- {
- $this->title = $title;
-
- return $this;
- }
-
- public function getSubtitle(): ?string
- {
- return $this->subtitle;
- }
-
- public function setSubtitle(?string $subtitle): self
- {
- $this->subtitle = $subtitle;
-
- return $this;
- }
-
- public function getDescription(): ?string
- {
- return $this->description;
- }
-
- public function setDescription(?string $description): self
- {
- $this->description = $description;
-
- return $this;
- }
-
- public function getImage(): ?FileInterface
- {
- return $this->image;
- }
-
- public function setImage(?FileInterface $image): self
- {
- $this->image = $image;
-
- return $this;
- }
- }
|