File: /var/www/dvpis2026/dvpis.kaunokolegija.lt/src/Entity/MeovLecturer.php
<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* MeovLecturer
*/
#[ORM\Table(name: 'meov_lecturer')]
#[ORM\Entity(repositoryClass: \App\Repository\MeovLecturerRepository::class)]
class MeovLecturer
{
#[ORM\Column]
#[ORM\Id]
#[ORM\GeneratedValue]
private ?int $id = null;
#[ORM\JoinColumn(name: 'meov_id', referencedColumnName: 'id', nullable: false)]
#[ORM\ManyToOne(targetEntity: Meov::class, inversedBy: 'MeovLecturers')]
private ?Meov $meov;
#[ORM\JoinColumn(name: 'lecturer_id', referencedColumnName: 'id', nullable: false)]
#[ORM\ManyToOne(targetEntity: Lecturer::class, inversedBy: 'MeovLecturers')]
private ?Lecturer $lecturer;
/**
* @var int
*/
#[ORM\Column(name: 'hours', type: 'integer')]
private $hours = 0;
/**
* @var int
*/
#[ORM\Column(name: 'fact_hours', type: 'integer')]
private $hoursFact = 0;
/**
* @var int
*/
#[ORM\Column(name: 'semester', type: 'smallint')]
private $semester = 0;
/**
* @var string
*/
#[ORM\Column(name: 'description', type: 'text', options: ['default' => ''], nullable: true)]
private $description = '';
/**
* @var string
*/
#[ORM\Column(name: 'description_fact', type: 'text', options: ['default' => ''])]
private $descriptionFact = '';
#[ORM\Column(name: 'department_head_description', type: 'text', nullable: true)]
private ?string $departmentHeadDescription = null;
#[ORM\Column(name: 'department_head_description_fact', type: 'text', nullable: true)]
private ?string $departmentHeadDescriptionFact = '';
/**
* @var int|null
*/
#[ORM\Column(name: 'poll_id', type: 'integer', nullable: true)]
private $poll;
#[ORM\ManyToOne(inversedBy: 'MeovLecturer')]
private ?FiveYearLecturerPlan $fiveYearLecturerPlan = null;
public function getId(): ?int
{
return $this->id;
}
public function setHours(int $hours): static
{
$this->hours = $hours;
return $this;
}
public function getHours(): ?int
{
return $this->hours;
}
public function setSemester(int $semester): static
{
$this->semester = $semester;
return $this;
}
public function getSemester(): ?int
{
return $this->semester;
}
public function setDescription(?string $description): static
{
$this->description = $description;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function getLecturer(): ?Lecturer
{
return $this->lecturer;
}
public function setLecturer(?Lecturer $lecturer): static
{
$this->lecturer = $lecturer;
return $this;
}
public function getMeov(): ?Meov
{
return $this->meov;
}
public function setMeov(?Meov $meov): static
{
$this->meov = $meov;
return $this;
}
public function getHoursFact(): ?int
{
return $this->hoursFact;
}
public function setHoursFact(int $hoursFact): static
{
$this->hoursFact = $hoursFact;
return $this;
}
public function getDescriptionFact(): ?string
{
return $this->descriptionFact;
}
public function setDescriptionFact(string $descriptionFact): static
{
$this->descriptionFact = $descriptionFact;
return $this;
}
public function getDepartmentHeadDescription(): ?string
{
return $this->departmentHeadDescription;
}
public function setDepartmentHeadDescription(?string $departmentHeadDescription): static
{
$this->departmentHeadDescription = $departmentHeadDescription;
return $this;
}
public function getDepartmentHeadDescriptionFact(): ?string
{
return $this->departmentHeadDescriptionFact;
}
public function setDepartmentHeadDescriptionFact(?string $departmentHeadDescriptionFact): static
{
$this->departmentHeadDescriptionFact = $departmentHeadDescriptionFact;
return $this;
}
public function getPoll(): ?int
{
return $this->poll;
}
public function setPoll(?int $poll): static
{
$this->poll = $poll;
return $this;
}
public function getFiveYearLecturerPlan(): ?FiveYearLecturerPlan
{
return $this->fiveYearLecturerPlan;
}
public function setFiveYearLecturerPlan(?FiveYearLecturerPlan $fiveYearLecturerPlan): static
{
$this->fiveYearLecturerPlan = $fiveYearLecturerPlan;
return $this;
}
}