<?php

namespace App\Modules\BookingUpgrade\Application\Find;

use App\Modules\Shared\Domain\Bus\Query\Query;

final class FindBookingUpgradeQuery implements Query
{
    public function __construct(
        private int $id,
        private bool $avoidTransaction = false,
        private bool $lockInShare = false
    ) {}

    public function getId(): string
    {
        return $this->id;
    }

    public function avoidTransaction()
    {
        return $this->avoidTransaction;
    }

    public function lockInShare()
    {
        return $this->lockInShare;
    }
}
