Automattic\WooCommerce\Admin\RemoteInboxNotifications

EvaluationLogger::__construct()publicWC 1.0

EvaluationLogger constructor.

{} Это метод класса: EvaluationLogger{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$EvaluationLogger = new EvaluationLogger();
$EvaluationLogger->__construct( $slug, $source, $logger );
$slug(строка) (обязательный)
Slug of a spec that is being evaluated.
$source(null)
Logger source.
По умолчанию: null
$logger(\WC_Logger_Interface)
Logger class to use.
По умолчанию: null

Код EvaluationLogger::__construct() WC 6.9.4

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;
}