HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/dvpis2026/dvpis.kaunokolegija.lt/src/Entity/TmmvLecturer.php
<?php

namespace App\Entity;

use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;

/**
 * TmmvLecturer
 */
#[ORM\Table(name: 'tmmv_lecturer')]
#[ORM\Entity(repositoryClass: \App\Repository\TmmvLecturerRepository::class)]
class TmmvLecturer
{
    #[ORM\Column]
    #[ORM\Id]
    #[ORM\GeneratedValue]
    private ?int $id = null;

    #[ORM\JoinColumn(name: 'tmmv_id', referencedColumnName: 'id', nullable: false)]
    #[ORM\ManyToOne(targetEntity: Tmmv::class, inversedBy: 'TmmvLecturers')]
    private ?Tmmv $tmmv;

    #[ORM\JoinColumn(name: 'lecturer_id', referencedColumnName: 'id', nullable: false)]
    #[ORM\ManyToOne(targetEntity: Lecturer::class, inversedBy: 'TmmvLecturers')]
    private ?Lecturer $lecturer;

    #[ORM\Column]
    private int $hours = 0;

    #[ORM\Column(name: 'fact_hours')]
    private int $hoursFact = 0;

    #[ORM\Column(type: 'smallint')]
    private int $semester;

    #[ORM\Column(type: 'text', nullable: true, options: ['default' => ''])]
    private ?string $description = '';

    #[ORM\Column(name: 'description_fact', type: 'text', options: ['default' => ''])]
    private string $descriptionFact = '';

    #[ORM\Column(name: 'department_head_description', type: 'text', options: ['default' => ''])]
    private string $departmentHeadDescription = '';

    #[ORM\Column(name: 'department_head_description_fact', type: 'text', options: ['default' => ''])]
    private string $departmentHeadDescriptionFact = '';

    #[ORM\Column(name: 'poll_id', type: 'integer', nullable: true)]
    private ?int $poll;

    #[ORM\ManyToOne(inversedBy: 'TmmvLecturer')]
    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 getTmmv(): ?Tmmv
    {
        return $this->tmmv;
    }

    public function setTmmv(?Tmmv $tmmv): static
    {
        $this->tmmv = $tmmv;

        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;
    }
}