<?php

namespace App\Modules\BookingTourPassenger\Infraestructure;

use App\Modules\BookingTourPassenger\Domain\BookingTourPassengerReviewRepository;
use App\Modules\BookingTourPassenger\Domain\IdBookingTourPassenger;
use App\Modules\Shared\Infraestructure\Requester;

class MysqlBookingTourPassengerReviewRepository implements BookingTourPassengerReviewRepository
{
    public function getReviews(IdBookingTourPassenger $id)
    {
        return Requester::requestSelect(
            'CALL sp_booking_tour_passenger_review(?,@sts,@cod,@msg)',
            [
                $id->value(),
            ]
        );
    }
}
