Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions
ProcessCoreProfilerPluginInstallOptions::__construct
Constructor.
Method of the class: ProcessCoreProfilerPluginInstallOptions{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ProcessCoreProfilerPluginInstallOptions = new ProcessCoreProfilerPluginInstallOptions(); $ProcessCoreProfilerPluginInstallOptions->__construct( $plugins, $slug, ?WC_Logger_Interface $logger );
- $plugins(array) (required)
- List of plugins.
- $slug(string) (required)
- Plugin slug.
- ?WC_Logger_Interface $logger
- .
Default:null
ProcessCoreProfilerPluginInstallOptions::__construct() ProcessCoreProfilerPluginInstallOptions:: construct code WC 10.8.1
public function __construct( array $plugins, string $slug, ?WC_Logger_Interface $logger = null ) {
$this->plugins = $plugins;
$this->slug = $slug;
$this->logger = $logger ?? wc_get_logger();
}