26 lines
589 B
PHP
26 lines
589 B
PHP
<?php
|
|
|
|
namespace App\Model;
|
|
|
|
use App\Enum\StaffingFee;
|
|
use App\Enum\StaffingRole;
|
|
|
|
/**
|
|
* One assignment App\Service\Assignment\AssignmentPlanner would create, before its role and
|
|
* fees are resolved to entities.
|
|
*/
|
|
final readonly class PlannedAssignment
|
|
{
|
|
/**
|
|
* @param list<StaffingFee> $fees
|
|
*/
|
|
public function __construct(
|
|
public StaffingRole $role,
|
|
public int $places,
|
|
/** busProId of the pre-selected boarding point ("Busbegleitung ab"), null for none */
|
|
public ?int $pickup = null,
|
|
public array $fees = [],
|
|
) {
|
|
}
|
|
}
|