<?php

namespace Modules\Booking\Actions;

use Modules\Booking\Models\Booking;

/**
 * Staff-only internal note, set from the admin panel
 * (SetRemarkTableAction). No status restriction — staff can annotate a
 * booking at any point in its lifecycle. Never exposed on the customer
 * BookingResource.
 */
class SetRemarkAction
{
    public function handle(Booking $booking, ?string $remark): Booking
    {
        $booking->update(['remark' => $remark]);

        return $booking;
    }
}
