src/Entity/Olympiad/Online/DirectionLanguage.php line 10
<?php
namespace App\Entity\Olympiad\Online;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'olymp_online_direction_langs')]
#[ORM\Entity(repositoryClass: 'App\Repository\Olympiad\Online\DirectionLanguageRepository')]
class DirectionLanguage
{
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: 'App\Entity\Olympiad\Online\Direction', inversedBy: 'languages')]
#[ORM\JoinColumn(nullable: false)]
private Direction $direction;
#[ORM\ManyToOne(targetEntity: 'App\Entity\Olympiad\Online\Language', inversedBy: 'directions')]
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'locale', name: 'language_locale')]
private ?Language $language = null;
#[ORM\Column(type: Types::INTEGER, nullable: true)]
private ?int $courseId = null;
#[ORM\Column(type: Types::INTEGER, nullable: true)]
private ?int $elementId = 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 Direction
*/
public function getDirection(): Direction
{
return $this->direction;
}
/**
* @param Direction $direction
*/
public function setDirection(Direction $direction): void
{
$this->direction = $direction;
}
/**
* @return Language|null
*/
public function getLanguage(): ?Language
{
return $this->language;
}
/**
* @param Language|null $language
*/
public function setLanguage(?Language $language): void
{
$this->language = $language;
}
public function getCourseId(): ?int
{
return $this->courseId;
}
public function setCourseId(?int $courseId): void
{
$this->courseId = $courseId;
}
public function getElementId(): ?int
{
return $this->elementId;
}
public function setElementId(?int $elementId): void
{
$this->elementId = $elementId;
}
}