WooCommerce Code Reference

EvaluationLogger

Class EvaluationLogger

Table of Contents

$logger  : WC_Logger_Interface|null
Logger class to use.
$results  : array<string|int, mixed>
Results of rules in the given spec.
$slug  : string
Slug of the spec.
$source  : string
Logger source.
__construct()  : mixed
EvaluationLogger constructor.
add_result()  : mixed
Add evaluation result of a rule.
log()  : mixed
Log the results.

Properties

Methods

add_result()

Add evaluation result of a rule.

public add_result(string $rule_type, bool $result) : mixed
Parameters
$rule_type : string

name of the rule being tested.

$result : bool

result of a given rule.

Return values
mixed