<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php

namespace Automattic\WooCommerce\Blueprint\ResourceStorages;

/**
 * Class LocalPluginResourceStorage
 */
class LocalPluginResourceStorage implements ResourceStorage {
	/**
	 * Paths to the directories containing the plugins.
	 *
	 * @var array The paths to the directories containing the plugins.
	 */
	protected array $paths = array();

	/**
	 * Suffix of the plugin files.
	 *
	 * @var string The suffix of the plugin files.
	 */
	protected string $suffix = 'plugins';

	/**
	 * LocalPluginResourceStorage constructor.
	 *
	 * @param string $path The path to the directory containing the plugins.
	 */
	public function __construct( $path ) {
		$this->paths[] = $path;
	}

	/**
	 * Local plugins are already included (downloaded) in the zip file.
	 * Return the full path.
	 *
	 * @param string $slug The slug of the plugin to be downloaded.
	 *
	 * @return string|null
	 */
	publi