<?php
/**
 * Interface for reference item value handlers.
 *
 * @package Ealab\Deployer
 */

namespace EaLab\WP_Deployer\vendor\Ealab\Deployer\Tracking\ItemValueHandler;

/**
 * Interface for reference item value handlers.
 */
interface ReferenceItemValueHandlerInterface {
	/**
	 * Gets the ID of the item tracker that contains the content.
	 *
	 * @param array $context An array with those keys:
	 *     - "definition", array: The definition (config) of the item value handler.
	 *     - "getContentRow", function: A function to call if the content row is needed
	 *       to determine the tracker ID.
	 *
	 * @return string|null The tracker ID, or null if not found.
	 */
	public static function getReferencedItemTrackerIdFromRawValues( array $context = array() ): ?string;
}
