conditions = $conditions; } /** * @return bool */ public function shouldDisplay() { foreach ($this->conditions as $or_conditions) { $display = \true; foreach ($or_conditions as $parameter => $value) { if (!isset($_GET[$parameter]) || $_GET[$parameter] !== $value) { $display = \false; } } if ($display) { return $display; } } return \false; } }