src/Entity/Olympiad/Online/CategoryTranslation.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_category_translation')]
#[ORM\Entity]
class CategoryTranslation 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;
/**
* @var string|null
*/
#[ORM\Column(type: 'string', nullable: true)]
private ?string $apply_button = null;
/**
* @var string|null
*/
#[ORM\Column(type: 'text', nullable: true)]
private ?string $apply_description = null;
public function isEmpty(): bool
{
$parentResult = $this->ttEmpty();
if ($parentResult) {
return true;
}
if (empty($this->caption)) {
return true;
}
return false;
}
/**
* @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 getApplyButton(): ?string
{
return $this->apply_button;
}
/**
* @param string|null $apply_button
*/
public function setApplyButton(?string $apply_button): void
{
$this->apply_button = $apply_button;
}
/**
* @return string|null
*/
public function getCaption(): ?string
{
return $this->caption;
}
/**
* @param string|null $caption
*/
public function setCaption(?string $caption): void
{
$this->caption = $caption;
}
/**
* @return string|null
*/
public function getApplyDescription(): ?string
{
return $this->apply_description;
}
/**
* @param string|null $apply_description
*/
public function setApplyDescription(?string $apply_description): void
{
$this->apply_description = $apply_description;
}
}