} /** * {@inheritDoc} */ public function set_conditions(array $conditions) : self { $this->conditions = $conditions; return $this; } /** * {@inheritDoc} */ public function get_conditions() : array { return $this->conditions; } /** * {@inheritDoc} */ public function sanitize($value) { return Util::clean($value); } #[\ReturnTypeWillChange] public function jsonSerialize() { return ['name' => $this->get_name(), 'label' => $this->get_label(), 'type' => $this->get_type(), 'default' => $this->get_default(), 'description' => $this->get_description(), 'attributes' => $this->get_attributes(), 'tooltip' => $this->get_tooltip(), 'conditions' => $this->get_conditions()]; } }