<?php
namespace Bookaro\Service;

defined( 'ABSPATH' ) || exit;

use Bookaro\Contracts\WebhookDispatcherInterface;

/**
 * No-op webhook dispatcher for Lite builds.
 */
class NullWebhookDispatcher implements WebhookDispatcherInterface
{
    public function is_available(): bool
    {
        return false;
    }

    public function dispatch( string $event, array $payload )
    {
        return new \WP_Error(
            'bookaro_pro_required',
            __( 'Available in MyBookaro Pro.', 'mybookaro' )
        );
    }
}
