src/Entity/Olympiad/Online/Language.php line 11
<?php
namespace App\Entity\Olympiad\Online;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'olymp_online_language')]
#[ORM\Entity(repositoryClass: '\App\Repository\Olympiad\Online\LanguageRepository')]
class Language
{
#[ORM\Id]
#[ORM\Column(type: 'string', length: 5, unique: true)]
private ?string $locale = null;
/**
* @var string|null
*/
#[ORM\Column(type: 'string')]
private ?string $caption = null;
#[ORM\OneToMany(targetEntity: 'App\Entity\Olympiad\Online\DirectionLanguage', mappedBy: 'language')]
private Collection $directions;
public function __construct()
{
$this->directions=new ArrayCollection();
}
/**
* @return string|null
*/
public function getCaption(): ?string
{
return $this->caption;
}
/**
* @param string|null $caption
*/
public function setCaption(?string $caption): void
{
$this->caption = $caption;
}
/**
* @return ArrayCollection|Collection
*/
public function getDirections()
{
return $this->directions;
}
/**
* @param ArrayCollection|Collection $directions
*/
public function setDirections($directions): void
{
$this->directions = $directions;
}
/**
* @return string|null
*/
public function getLocale(): ?string
{
return $this->locale;
}
/**
* @param string|null $locale
*/
public function setLocale(?string $locale): void
{
$this->locale = $locale;
}
}