src/Entity/Olympiad/Online/DirectionTranslation.php line 11
<?php
namespace App\Entity\Olympiad\Online;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
#[ORM\Table(name: 'olymp_online_direction_translation')]
#[ORM\Entity]
class DirectionTranslation implements TranslationInterface
{
use TranslationTrait {
isEmpty as ttEmpty;
}
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private ?int $id=null;
#[ORM\Column(type: 'string', nullable: true)]
private ?string $caption=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;
}
}