Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors
EvaluationLogger::__construct
EvaluationLogger constructor.
Метод класса: EvaluationLogger{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$EvaluationLogger = new EvaluationLogger(); $EvaluationLogger->__construct( $slug, $source, ?\WC_Logger_Interface $logger );
- $slug(строка) (обязательный)
- Slug/ID of a spec that is being evaluated.
- $source(строка|null)
- Logger source.
По умолчанию:null - ?\WC_Logger_Interface $logger
- .
По умолчанию:null
Код EvaluationLogger::__construct() EvaluationLogger:: construct WC 11.2.2
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;
}