wip: modernized edit flow
This commit is contained in:
@@ -6,7 +6,7 @@ namespace App\Service;
|
||||
|
||||
use App\BusProNet\Constants;
|
||||
use App\BusProNet\Model\Service;
|
||||
use App\Form\Model\BookingDtoInterface;
|
||||
use App\Form\Model\BookingDto;
|
||||
use Carbon\CarbonImmutable;
|
||||
use Spatie\Blink\Blink;
|
||||
|
||||
@@ -31,12 +31,12 @@ class ParticipantEligibilityService
|
||||
*
|
||||
* Results are cached per request to avoid redundant calculations.
|
||||
*
|
||||
* @param BookingDtoInterface $bookingDto The current booking data
|
||||
* @param BookingDto $bookingDto The current booking data
|
||||
* @param int $participantIndex The index of the participant being evaluated
|
||||
*
|
||||
* @return bool True if participant is eligible (has available skipasses)
|
||||
*/
|
||||
public function isParticipantEligible(BookingDtoInterface $bookingDto, int $participantIndex): bool
|
||||
public function isParticipantEligible(BookingDto $bookingDto, int $participantIndex): bool
|
||||
{
|
||||
$participant = $bookingDto->getParticipant($participantIndex);
|
||||
|
||||
@@ -66,7 +66,7 @@ class ParticipantEligibilityService
|
||||
/**
|
||||
* Checks if a skipass service is available for the given participant based on age constraints.
|
||||
*/
|
||||
private function isSkiPassAvailableForParticipant(Service $service, BookingDtoInterface $bookingDto, int $participantIndex): bool
|
||||
private function isSkiPassAvailableForParticipant(Service $service, BookingDto $bookingDto, int $participantIndex): bool
|
||||
{
|
||||
$participant = $bookingDto->getParticipant($participantIndex);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user