*/ public $unknowns = array(); /** * Fallback row applied. * * @var string|null */ public $fallback_applied = null; /** * Main-query fix used. * * @var bool */ public $query_swapped = false; /** * Another query replaced the main one at evaluation time. * * @var bool */ public $query_mismatch = false; /** * Extra badges (for example dependency_inactive on a location condition). * * @var array */ public $badges = array(); /** * Explain mode: outcomes when a part depends on the simulated visitor. * * @var array|null */ public $both_outcomes = null; /** * Array form. * * @return array */ public function to_array() { return array( 'visible' => $this->visible, 'tree_result' => $this->tree_result, 'decided_by' => $this->decided_by, 'decided_value' => $this->decided_value, 'unknowns' => $this->unknowns, 'fallback_applied' => $this->fallback_applied, 'query_swapped' => $this->query_swapped, 'query_mismatch' => $this->query_mismatch, 'badges' => $this->badges, 'both_outcomes' => $this->both_outcomes, ); } }