<?php
namespace RadiusTheme\RadiusBooking\Resources;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
use RadiusTheme\RadiusBooking\Abstracts\BaseResource;

/**
 * Api/Resources/DashboardResource.php
 * Dashboard resource transformer
 *
 * @package RadiusTheme\RadiusBooking\Resources
 */
class DashboardResource extends BaseResource {

	/**
	 * Transform a Dashboard model into an API-friendly array.
	 *
	 * @param object $dashboard The Dashboard model instance.
	 * @return array Transformed data.
	 */
	public function transform( $dashboard ): array {
		return array(
			'id'         => $dashboard->id,
			// Add other fields as needed
			'created_at' => $dashboard->created_at,
			'updated_at' => $dashboard->updated_at,
		);
	}
}
