<?php
namespace RadiusTheme\RadiusBooking\Resources;

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

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

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