File: /var/www/dvpis2025/dvpis.kaunokolegija.lt/src/Entity/FiveYearLecturerPlanApproval.php
<?php
namespace App\Entity;
use App\Repository\FiveYearLecturerPlanApprovalRepository;
use DateTimeInterface;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FiveYearLecturerPlanApprovalRepository::class)]
#[ORM\Table(name: 'five_year_lecturer_plan_approval')]
class FiveYearLecturerPlanApproval
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
/**
* @var string|null
*/
#[ORM\Column(length: 255)]
private ?string $role = null;
/**
* @var DateTimeInterface|null
*/
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $approveDate = null;
#[ORM\ManyToOne(inversedBy: 'fiveYearLecturerPlanApprovals')]
#[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id')]
private ?User $user = null;
#[ORM\ManyToOne(inversedBy: 'fiveYearLecturerPlanApprovals')]
#[ORM\JoinColumn(name: 'lecturer_agreement_id', referencedColumnName: 'id')]
private ?LecturerAgreement $lecturerAgreement = null;
public function getId(): ?int
{
return $this->id;
}
public function getRole(): ?string
{
return $this->role;
}
public function setRole(string $role): static
{
$this->role = $role;
return $this;
}
public function getApproveDate(): ?\DateTimeInterface
{
return $this->approveDate;
}
public function setApproveDate(?\DateTimeInterface $approveDate): static
{
$this->approveDate = $approveDate;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): static
{
$this->user = $user;
return $this;
}
public function getLecturerAgreement(): ?LecturerAgreement
{
return $this->lecturerAgreement;
}
public function setLecturerAgreement(?LecturerAgreement $lecturerAgreement): static
{
$this->lecturerAgreement = $lecturerAgreement;
return $this;
}
}