wip: show pricing
This commit is contained in:
1 parent
60b655a195
commit
0e0ce254a9
19 files changed
+602
-183
No files matched your search
@@ -6,6 +6,7 @@ namespace App\Form\Service;
|
||||
|
||||
use App\BusProNet\Model\Service;
|
||||
use App\Form\Model\BookingDtoInterface;
|
||||
use App\Form\Model\ParticipantDto;
|
||||
use App\Form\Service\Contract\ParticipantFieldHandlerInterface;
|
||||
|
||||
/**
|
||||
@@ -17,7 +18,7 @@ use App\Form\Service\Contract\ParticipantFieldHandlerInterface;
|
||||
*/
|
||||
class ParticipantFieldHandlerRegistry
|
||||
{
|
||||
/** @var ParticipantFieldHandlerInterface[] Registered handlers indexed by field name */
|
||||
/** @var array<string, ParticipantFieldHandlerInterface> Registered handlers indexed by field name */
|
||||
private array $handlers = [];
|
||||
|
||||
/** @var string[]|null Cached array of handler names sorted by dependency order */
|
||||
@@ -274,11 +275,11 @@ class ParticipantFieldHandlerRegistry
|
||||
* been processed by checking against registered handlers.
|
||||
*
|
||||
* @param array<string, mixed> $participantData The submitted participant data
|
||||
* @param object $participant The cleaned participant DTO
|
||||
* @param ParticipantDto $participant The cleaned participant DTO
|
||||
*
|
||||
* @return array<string, mixed> Updated participant data with synchronized field values
|
||||
*/
|
||||
private function syncParticipantData(array $participantData, object $participant): array
|
||||
private function syncParticipantData(array $participantData, ParticipantDto $participant): array
|
||||
{
|
||||
// Sync fields for all registered handlers
|
||||
foreach ($this->handlers as $fieldName => $handler) {
|
||||
|
||||
Reference in new issue
Block a user