hegresphere/src/Entity/InternApplication.php

67 lines
1.4 KiB
PHP

<?php
namespace App\Entity;
use App\Repository\InternApplicationRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: InternApplicationRepository::class)]
class InternApplication
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'applicants')]
private ?Announcement $application = null;
#[ORM\ManyToOne(inversedBy: 'applications')]
private ?Intern $intern = null;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $applicationDate = null;
public function getId(): ?int
{
return $this->id;
}
public function getApplication(): ?Announcement
{
return $this->application;
}
public function setApplication(?Announcement $application): static
{
$this->application = $application;
return $this;
}
public function getIntern(): ?Intern
{
return $this->intern;
}
public function setIntern(?Intern $intern): static
{
$this->intern = $intern;
return $this;
}
public function getApplicationDate(): ?\DateTimeInterface
{
return $this->applicationDate;
}
public function setApplicationDate(\DateTimeInterface $applicationDate): static
{
$this->applicationDate = $applicationDate;
return $this;
}
}