wip: bulk insurance refactoring
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
use App\Form\Model\BookingDto;
|
||||
use App\Form\Model\ParticipantDto;
|
||||
|
||||
/**
|
||||
* Value object containing criteria for insurance eligibility evaluation.
|
||||
*
|
||||
* Groups all the parameters needed to determine if an insurance product
|
||||
* is eligible for a specific participant and booking scenario.
|
||||
*/
|
||||
readonly class InsuranceEligibilityCriteria
|
||||
{
|
||||
public function __construct(
|
||||
public ParticipantDto $participant,
|
||||
public \DateTimeImmutable $travelStartDate,
|
||||
public \DateTimeImmutable $travelEndDate,
|
||||
public \DateTimeImmutable $bookingDate,
|
||||
public float $travelPrice,
|
||||
public int $travelDurationDays,
|
||||
public BookingDto $booking,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user