67 lines
1.4 KiB
PHP
67 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\DispositionRequirementRepository;
|
|
use Doctrine\DBAL\Types\Types;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: DispositionRequirementRepository::class)]
|
|
class DispositionRequirement
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\ManyToOne]
|
|
private ?Training $training = null;
|
|
|
|
#[ORM\Column(type: Types::DATE_IMMUTABLE, nullable: true)]
|
|
private ?\DateTimeImmutable $pickupDate = null;
|
|
|
|
#[ORM\ManyToOne(inversedBy: 'requirements')]
|
|
private ?Assignment $assignment = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getTraining(): ?Training
|
|
{
|
|
return $this->training;
|
|
}
|
|
|
|
public function setTraining(?Training $training): static
|
|
{
|
|
$this->training = $training;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getPickupDate(): ?\DateTimeImmutable
|
|
{
|
|
return $this->pickupDate;
|
|
}
|
|
|
|
public function setPickupDate(?\DateTimeImmutable $pickupDate): static
|
|
{
|
|
$this->pickupDate = $pickupDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getAssignment(): ?Assignment
|
|
{
|
|
return $this->assignment;
|
|
}
|
|
|
|
public function setAssignment(?Assignment $assignment): static
|
|
{
|
|
$this->assignment = $assignment;
|
|
|
|
return $this;
|
|
}
|
|
}
|