src/Entity/Olympiad/Grade.php line 15
<?php
namespace App\Entity\Olympiad;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\TrackerFields;
use App\Entity\Traits\UserCreatedInterface;
use App\Entity\Traits\UserUpdatedInterface;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'olympiad_grade')]
#[ORM\Entity(repositoryClass: 'App\Repository\Olympiad\GradeRepository')]
#[ORM\HasLifecycleCallbacks]
class Grade implements UserCreatedInterface, UserUpdatedInterface
{
use TrackerFields;
use ActiveTrait;
/**
* @var int|null
*/
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private $id;
/**
* @var Collection|Olympiad[]
*
*/
#[ORM\ManyToMany(targetEntity: 'App\Entity\Olympiad\Olympiad', mappedBy: 'grades')]
private $olympiads;
/**
* @var string|null
*/
#[ORM\Column(type: 'string', nullable: false)]
private $value;
/**
* @var string|null
*/
#[ORM\Column(type: 'string', nullable: false)]
private $caption;
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int|null $id
*/
public function setId(?int $id): void
{
$this->id = $id;
}
/**
* @return Olympiad[]|Collection
*/
public function getOlympiads()
{
return $this->olympiads;
}
/**
* @param Olympiad[]|Collection $olympiads
*/
public function setOlympiads($olympiads): void
{
$this->olympiads = $olympiads;
}
/**
* @return string|null
*/
public function getValue(): ?string
{
return $this->value;
}
/**
* @param string|null $value
*/
public function setValue(?string $value): void
{
$this->value = $value;
}
/**
* @return string|null
*/
public function getCaption(): ?string
{
return $this->caption;
}
/**
* @param string|null $caption
*/
public function setCaption(?string $caption): void
{
$this->caption = $caption;
}
}