src/Entity/Gallery/GroupTranslation.php line 10
<?php
namespace App\Entity\Gallery;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
#[ORM\Table(name: 'gallery_group_translation')]
#[ORM\Entity]
class GroupTranslation implements TranslationInterface
{
use \Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\Column(type: 'string')]
private ?string $caption = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $preview = null;
/**
* @return string|null
*/
public function getPreview(): ?string
{
return $this->preview;
}
/**
* @param string|null $preview
*/
public function setPreview(?string $preview): void
{
$this->preview = $preview;
}
/**
* @return string|null
*/
public function getText(): ?string
{
return $this->text;
}
/**
* @param string|null $text
*/
public function setText(?string $text): void
{
$this->text = $text;
}
#[ORM\Column(type: 'text', nullable: true)]
private ?string $text = null;
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int|null $id
*/
public function setId(?int $id): void
{
$this->id = $id;
}
/**
* @return string|null
*/
public function getCaption(): ?string
{
return $this->caption;
}
/**
* @param string|null $caption
*/
public function setCaption(?string $caption): void
{
$this->caption = $caption;
}
}