src/Entity/Organisation/University/OlympPrivilegy.php line 21
<?php
namespace App\Entity\Organisation\University;
use App\Entity\Olympiad\Olympiad;
use App\Entity\Organisation\Organisation;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\DeletedTrait;
use App\Entity\Traits\TrackerFields;
use App\Entity\Traits\UserCreatedInterface;
use App\Entity\Traits\UserUpdatedInterface;
use Doctrine\ORM\Mapping as ORM;
/**
* Class OlympPrivileges
* @package App\Entity\Organisation\University
*/
#[ORM\Table(name: 'university_olymp_privilegy')]
#[ORM\Entity(repositoryClass: 'App\Repository\Organisation\University\OlympPrivilegyRepository')]
#[ORM\HasLifecycleCallbacks]
class OlympPrivilegy implements UserCreatedInterface, UserUpdatedInterface
{
use TrackerFields;
use ActiveTrait;
/**
* @var ?integer
*/
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private $id;
/**
* @var ?Organisation
*/
#[ORM\ManyToOne(targetEntity: 'App\Entity\Organisation\Organisation', inversedBy: 'olymp_privileges')]
#[ORM\JoinColumn(nullable: false)]
private $organisation;
/**
* @var ?Olympiad
*/
#[ORM\ManyToOne(targetEntity: 'App\Entity\Olympiad\Olympiad', inversedBy: 'privileges')]
#[ORM\JoinColumn(nullable: false)]
private $olympiad;
/**
* @var ?string
*/
#[ORM\Column(type: 'text', nullable: true)]
private $description;
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int|null $id
*/
public function setId(?int $id): void
{
$this->id = $id;
}
/**
* @return Organisation|null
*/
public function getOrganisation(): ?Organisation
{
return $this->organisation;
}
/**
* @param Organisation|null $organisation
*/
public function setOrganisation(?Organisation $organisation): void
{
$this->organisation = $organisation;
}
/**
* @return Olympiad|null
*/
public function getOlympiad(): ?Olympiad
{
return $this->olympiad;
}
/**
* @param Olympiad|null $olympiad
*/
public function setOlympiad(?Olympiad $olympiad): void
{
$this->olympiad = $olympiad;
}
/**
* @return string|null
*/
public function getDescription(): ?string
{
return $this->description;
}
/**
* @param string|null $description
*/
public function setDescription(?string $description): void
{
$this->description = $description;
}
}