wip: additional services with constraints
This commit is contained in:
1 parent
4b92f56ed7
commit
0f7d95d31b
28 files changed
+141
-63
No files matched your search
@@ -30,7 +30,7 @@ class ApplicantCondition implements FieldConditionInterface
|
||||
public function evaluate(BookingDtoInterface $bookingDto, int $participantIndex, array $formData): bool
|
||||
{
|
||||
// Default: applicant is the first participant (index 0)
|
||||
return $participantIndex === 0;
|
||||
return 0 === $participantIndex;
|
||||
}
|
||||
|
||||
public function getDependentFields(): array
|
||||
@@ -42,4 +42,4 @@ class ApplicantCondition implements FieldConditionInterface
|
||||
{
|
||||
return 'Checks if the participant is the applicant (index 0)';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user