Files
archived-doctrine-website/lib/Model/EventScheduleSlot.php
2023-08-23 21:03:31 +02:00

33 lines
589 B
PHP

<?php
declare(strict_types=1);
namespace Doctrine\Website\Model;
use DateTimeImmutable;
final class EventScheduleSlot
{
public function __construct(
private EventSpeaker $speaker,
private DateTimeImmutable $startDate,
private DateTimeImmutable $endDate,
) {
}
public function getSpeaker(): EventSpeaker
{
return $this->speaker;
}
public function getStartDate(): DateTimeImmutable
{
return $this->startDate;
}
public function getEndDate(): DateTimeImmutable
{
return $this->endDate;
}
}