src/Entity/Olympiad/StageTranslation.php line 18
<?php
namespace App\Entity\Olympiad;
use App\Entity\Common\DateInterval;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\TrackerFields;
use App\Entity\Traits\UserCreatedInterface;
use App\Entity\Traits\UserUpdatedInterface;
use App\Entity\UUID\HaveUuidInterface;
use App\Entity\UUID\UuidTrait;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
#[ORM\Table(name: 'olympiad_stage_translation')]
#[ORM\Entity]
class StageTranslation implements TranslationInterface
{
use TranslationTrait {
isEmpty as ttEmpty;
}
public function isEmpty(): bool
{
$parentResult = $this->ttEmpty();
if ($parentResult) {
return true;
}
if (empty($this->caption)) {
return true;
}
// if (empty($this->text)) return true;
return false;
}
/**
* @var int|null
*/
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private $id;
/**
* @var string|null
*/
#[ORM\Column(type: 'string', nullable: true)]
private $caption;
/**
* @var string|null
*/
#[ORM\Column(type: 'text', nullable: true)]
private $description;
/**
* @var string|null
*/
#[ORM\Column(type: 'text', nullable: true)]
private $place;
/**
* @var string|null
*/
#[ORM\Column(type: 'string', nullable: true)]
private ?string $place_short=null;
/**
* @var string|null
*/
#[ORM\Column(type: 'text', nullable: true)]
private $contacts;
/**
* @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;
}
/**
* @return string|null
*/
public function getDescription(): ?string
{
return $this->description;
}
/**
* @param string|null $description
*/
public function setDescription(?string $description): void
{
$this->description = $description;
}
/**
* @return string|null
*/
public function getPlace(): ?string
{
return $this->place;
}
/**
* @param string|null $place
*/
public function setPlace(?string $place): void
{
$this->place = $place;
}
/**
* @return string|null
*/
public function getPlaceShort(): ?string
{
return $this->place_short;
}
/**
* @param string|null $place_short
*/
public function setPlaceShort(?string $place_short): void
{
$this->place_short = $place_short;
}
/**
* @return string|null
*/
public function getContacts(): ?string
{
return $this->contacts;
}
/**
* @param string|null $contacts
*/
public function setContacts(?string $contacts): void
{
$this->contacts = $contacts;
}
}