<?php
/**
 * WeCodeArt Framework.
 *
 * WARNING: This file is part of the core WeCodeArt Framework. DO NOT edit this file under any circumstances.
 * Please do all modifications in the form of a child theme.
 *
 * @package 	WeCodeArt Framework
 * @subpackage 	Support\Styles
 * @copyright   Copyright (c) 2025, WeCodeArt Framework
 * @since 		5.0.0
 * @version		6.6.6
 */

namespace WeCodeArt\Support\Styles;

defined( 'ABSPATH' ) || exit;

use WeCodeArt\Config\Traits\Singleton;
use WeCodeArt\Support\Styles\Sanitize\Property;
use function WeCodeArt\Functions\get_prop;

/**
 * The Sanitize object.
 */
final class Sanitize {

	use Singleton;

	/**
	 * Font.
	 *
	 * @since   6.3.7
	 * @param 	mixed $value
	 *
	 * @return 	string
	 */
	public static function font( $value ): string {
		return ( new Property\Font( $value ) )->get_value();
	}

	/**
	 * Focal.
	 *
	 * @since   6.3.7
	 * @param 	array $value
	 *
	 * @return 	string
	 */
	public static function focal( array $value ): string {
		return ( new Property\Focal( $value ) )->get_value();
	}

	/**
	 * Background.
	 *
	 * @since   6.3.7
	 * @param 	mixed $value (int|string)
	 *
	 * @return 	string
	 */
	public static function background( $value ): string {
		return ( new Property\Background( $value ) )->get_value();
	}

	/**
	 * Sanitize color.
	 *
	 * @param 	string $value Color value.
	 *
	 * @return 	string
	 */
	public static function color( string $value = '' ): string {
		return ( new Property\Color( $value ) )->get_value();
	}
}