<?phpnamespace App\Entity;use App\Repository\StudentLevelRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=StudentLevelRepository::class) */class StudentLevel{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="smallint") */ private $value; /** * @ORM\ManyToOne(targetEntity=CalendarEvent::class) */ private $calendarEvent; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $comment; /** * @ORM\ManyToOne(targetEntity=Student::class, inversedBy="levels") */ private $student; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=true) */ private $author; /** * @ORM\Column(type="datetime") */ private $createdAt; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getValue(): ?int { return $this->value; } public function setValue(int $value): self { $this->value = $value; return $this; } public function getCalendarEvent(): ?CalendarEvent { return $this->calendarEvent; } public function setCalendarEvent(?CalendarEvent $calendarEvent): self { $this->calendarEvent = $calendarEvent; return $this; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): self { $this->comment = $comment; return $this; } public function getStudent(): ?Student { return $this->student; } public function setStudent(?Student $student): self { $this->student = $student; return $this; } public function getAuthor(): ?User { return $this->author; } public function setAuthor(?User $author): self { $this->author = $author; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; }}