<?php
/**
 * Interface for config filters.
 *
 * @package Ealab\Deployer
 */

namespace Ealab\Deployer\Utility\DeployerConfigRepository;

/**
 * Interface for config filters.
 */
interface ConfigFilterInterface {
	/**
	 * Filters the config.
	 *
	 * @param array|mixed|null $config The config to filter. Usually returned by DeployerConfig::getConfig().
	 * @param array|null       $options The options to use for the filter.
	 *
	 * @return mixed The filtered config.
	 */
	public static function filter( $config = null, ?array $options = null );
}
