docs: add inline documentation where missing

This commit is contained in:
Björn Fromme
2026-03-16 12:01:09 +01:00
parent 2fe9185a6f
commit ea1ce4a029
18 changed files with 150 additions and 0 deletions
@@ -10,6 +10,18 @@ use App\Form\Model\BookingDto;
use App\Form\Service\Abstract\AbstractParticipantFieldHandler;
use App\Service\ServiceAvailabilityCalculator;
/**
* Handles automatic replacement of discounted transportation based on booking rules.
*
* This virtual field handler enforces the business rule that discounted self-organized
* transportation (PKW with negative price) is only available when both outbound AND
* inbound travel use PKW. When inbound changes to BUS, the outbound PKW is automatically
* replaced with the regular (non-discounted) PKW variant.
*
* Conversely, when inbound changes back to PKW, this handler restores the discounted
* variant if availability permits. Baby participants (age <= 2) are excluded from
* discounted transportation restoration.
*/
class ParticipantTransportationDiscountReplacementFieldHandler extends AbstractParticipantFieldHandler
{
public function __construct(