Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors
EvaluationLogger::__construct
EvaluationLogger constructor.
Method of the class: EvaluationLogger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$EvaluationLogger = new EvaluationLogger(); $EvaluationLogger->__construct( $slug, $source, ?\WC_Logger_Interface $logger );
- $slug(string) (required)
- Slug/ID of a spec that is being evaluated.
- $source(string|null)
- Logger source.
Default:null - ?\WC_Logger_Interface $logger
- .
Default:null
EvaluationLogger::__construct() EvaluationLogger:: construct code WC 10.8.1
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;
}