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/LecturerApprovedActivities.php
<?php

namespace App\Entity;

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

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

    /**
     * @var string
     */
    #[ORM\Column(name: 'type', type: 'string', length: 255)]
    private $type;

    /**
     * @var int
     */
    #[ORM\Column(name: 'isApproved', type: 'smallint')]
    private $isApproved;

    /**
     * @var DateTime
     */
    #[ORM\Column(name: 'approval_date', type: 'datetime')]
    private $approvalDate;

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

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getApprovalDate(): ?\DateTimeInterface
    {
        return $this->approvalDate;
    }

    public function setApprovalDate(\DateTimeInterface $approvalDate): static
    {
        $this->approvalDate = $approvalDate;

        return $this;
    }

    public function setType(string $type): static
    {
        $this->type = $type;

        return $this;
    }

    public function getType(): ?string
    {
        return $this->type;
    }

    public function setIsApproved(int $isApproved): static
    {
        $this->isApproved = $isApproved;

        return $this;
    }

    public function getIsApproved(): ?int
    {
        return $this->isApproved;
    }

    public function getLecturer(): ?Lecturer
    {
        return $this->lecturer;
    }

    public function setLecturer(?Lecturer $lecturer): static
    {
        $this->lecturer = $lecturer;

        return $this;
    }
}