visible = $visible; $this->variant = $variant; $this->order_override = $order_override; } /** * Whether the widget should render. * * @since 4.10.0 * * @return bool */ public function is_visible(): bool { return $this->visible; } /** * Get the template variant. * * @since 4.10.0 * * @return string */ public function get_variant(): string { return $this->variant; } /** * Get the dynamic sort position, or null to use the widget ORDER constant. * * @since 4.10.0 * * @return int|null */ public function get_order_override(): ?int { return $this->order_override; } }