<?php

namespace App\Modules\PaxInformation\Infraestructure;

use App\Modules\PaxInformation\Domain\IdPaxInformation;
use App\Modules\PaxInformation\Domain\PaxInformationGetBookingTourRepository;
use App\Modules\Shared\Infraestructure\Requester;

class MysqlPaxInformationGetBookingTourRepository implements PaxInformationGetBookingTourRepository
{
    public function getBookingTour(IdPaxInformation $id)
    {
        return Requester::requestSelect(
            'CALL sp_pax_information_get_booking_tour(?,@sts,@cod,@msg)',
            [
                $id->value()
            ]
        );
    }
}
