<?php
namespace Bookaro\Service;

defined( 'ABSPATH' ) || exit;

use Bookaro\Contracts\ReportsProviderInterface;

/**
 * No-op reports provider for Lite builds.
 */
class NullReportsProvider implements ReportsProviderInterface
{
    public function is_available(): bool
    {
        return false;
    }

    public function get_frontend_data( int $provider_id ): array
    {
        return [
            'error' => new \WP_Error(
                'bookaro_pro_required',
                __( 'Available in MyBookaro Pro.', 'mybookaro' )
            ),
        ];
    }
}
