MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/me/wp-content/plugins/wordpress-seo/inc/sitemaps/interface-sitemap-cache-data.php
<?php
/**
 * @package WPSEO\XML_Sitemaps
 */

/**
 * Cache Data interface
 */
interface WPSEO_Sitemap_Cache_Data_Interface {

	/** Status for normal, usable sitemap. */
	const OK = 'ok';

	/** Status for unusable sitemap. */
	const ERROR = 'error';

	/** Status for unusable sitemap because it cannot be identified. */
	const UNKNOWN = 'unknown';

	/**
	 * Set the content of the sitemap
	 *
	 * @param string $sitemap The XML content of the sitemap.
	 *
	 * @return void
	 */
	public function set_sitemap( $sitemap );

	/**
	 * Set the status of the sitemap
	 *
	 * @param bool|string $usable True/False or 'ok'/'error' for status.
	 *
	 * @return void
	 */
	public function set_status( $usable );

	/**
	 * @return string The XML content of the sitemap.
	 */
	public function get_sitemap();

	/**
	 * Get the status of this sitemap
	 *
	 * @return string Status 'ok', 'error' or 'unknown'.
	 */
	public function get_status();

	/**
	 * Is the sitemap content usable
	 *
	 * @return bool True if the sitemap is usable, False if not.
	 */
	public function is_usable();
}