Automattic\WooCommerce\Admin\RemoteInboxNotifications

EvaluationLogger::__construct()publicWC 1.0

EvaluationLogger constructor.

Method of the class: EvaluationLogger{}

No Hooks.

Return

null. Nothing (null).

Usage

$EvaluationLogger = new EvaluationLogger();
$EvaluationLogger->__construct( $slug, $source, $logger );
$slug(string) (required)
Slug of a spec that is being evaluated.
$source(null)
Logger source.
Default: null
$logger(\WC_Logger_Interface)
Logger class to use.
Default: null

EvaluationLogger::__construct() code WC 8.7.0

public function __construct( $slug, $source = null, \WC_Logger_Interface $logger = null ) {
	$this->slug = $slug;
	if ( null === $logger ) {
		$logger = wc_get_logger();
	}

	if ( $source ) {
		$this->source = $source;
	}

	$this->logger = $logger;
}