src/Entity/Olympiad/Stage.php line 19
<?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 App\Model\Translation\TranslatableTrait;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
#[ORM\Table(name: 'olympiad_stage')]
#[ORM\Entity(repositoryClass: 'App\Repository\Olympiad\StageRepository')]
#[ORM\HasLifecycleCallbacks]
class Stage implements UserCreatedInterface, UserUpdatedInterface, HaveUuidInterface, TranslatableInterface
{
use TranslatableTrait;
use TrackerFields;
use ActiveTrait;
use UuidTrait;
/**
* @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;
/**
* @var Olympiad|null
*/
#[ORM\ManyToOne(targetEntity: 'App\Entity\Olympiad\Olympiad', inversedBy: 'stages')]
#[ORM\JoinColumn(nullable: false)]
private $olympiad;
/**
* @var DateInterval
*/
#[ORM\Embedded(class: 'App\Entity\Common\DateInterval')]
private $interval;
public function __construct()
{
$this->interval = new DateInterval();
}
/**
* @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
*/
/**
* @return Olympiad|null
*/
public function getOlympiad(): ?Olympiad
{
return $this->olympiad;
}
/**
* @param Olympiad|null $olympiad
*/
public function setOlympiad(?Olympiad $olympiad): void
{
$this->olympiad = $olympiad;
}
/**
* @return DateInterval
*/
public function getInterval(): DateInterval
{
return $this->interval;
}
/**
* @param DateInterval $interval
*/
public function setInterval(DateInterval $interval): void
{
$this->interval = $interval;
}
}