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/dvpis2025/dvpis.kaunokolegija.lt/src/Entity/KtvLecturer.php
<?php

namespace App\Entity;

use App\Repository\KtvLecturerRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;

/**
 * KtvLecturer
 */
#[ORM\Table(name: 'ktv_lecturer')]
#[ORM\Entity(repositoryClass: KtvLecturerRepository::class)]
class KtvLecturer
{
    #[ORM\Column]
    #[ORM\Id]
    #[ORM\GeneratedValue]
    private ?int $id = null;

    #[ORM\JoinColumn(name: 'ktv_id', referencedColumnName: 'id', nullable: false)]
    #[ORM\ManyToOne(targetEntity: Ktv::class, inversedBy: 'KtvLecturers')]
    private ?Ktv $ktv;

    #[ORM\JoinColumn(name: 'lecturer_id', referencedColumnName: 'id', nullable: false)]
    #[ORM\ManyToOne(targetEntity: Lecturer::class, inversedBy: 'KtvLecturers')]
    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 = '';

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

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

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

    #[ORM\ManyToOne(inversedBy: 'KtvLecturer')]
    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 getKtv(): ?Ktv
    {
        return $this->ktv;
    }

    public function setKtv(?Ktv $ktv): static
    {
        $this->ktv = $ktv;

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