<?php
namespace Bookaro\Service;

defined( 'ABSPATH' ) || exit;

use Bookaro\Contracts\MessagingGatewayInterface;

/**
 * No-op messaging gateway for Lite builds.
 */
class NullMessagingGateway implements MessagingGatewayInterface
{
    public function sendTemplate(
        string $channel,
        string $template_key,
        string $to,
        array $replacements = []
    ) {
        return new \WP_Error(
            'bookaro_pro_required',
            __( 'Available in MyBookaro Pro.', 'mybookaro' )
        );
    }

    public function sendReminder( int $booking_id, string $template_key ): void
    {
        // No-op in Lite.
    }

    public function sendReviewInvite( int $booking_id ): void
    {
        // No-op in Lite.
    }

    public function resolve_provider_phone( int $listing_id, int $provider_id ): string
    {
        return '';
    }

    public function resolve_customer_phone( int $customer_id, string $booking_phone = '' ): string
    {
        return '';
    }
}
