31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Model;
|
|
|
|
final readonly class BookingEditSubmissionResult
|
|
{
|
|
public const string STATUS_BOOKING_DATA_RELOAD_FAILED = 'booking_data_reload_failed';
|
|
public const string STATUS_NOTIFICATION_ERROR = 'notification_error';
|
|
public const string STATUS_NOTIFICATION_INFO = 'notification_info';
|
|
public const string STATUS_SUCCESS = 'success';
|
|
public const string STATUS_UNSUCCESSFUL = 'unsuccessful';
|
|
public const string STATUS_TIMEOUT = 'timeout';
|
|
public const string STATUS_API_CLIENT_ERROR = 'api_client_error';
|
|
|
|
/**
|
|
* @param list<string> $unbookableServicesReverted Labels of services dropped because they are
|
|
* no longer bookable, reported separately from
|
|
* the mutability revert: the category is still
|
|
* mutable, the service is not bookable
|
|
*/
|
|
public function __construct(
|
|
public string $status,
|
|
public ?string $message = null,
|
|
public bool $immutableChangesReverted = false,
|
|
public array $unbookableServicesReverted = [],
|
|
) {
|
|
}
|
|
}
|