viewComponents[$viewComponentName] = $prefix; return $this; } public function hasViewComponents(string $prefix, ...$viewComponentNames): static { foreach ($viewComponentNames as $componentName) { $this->viewComponents[$componentName] = $prefix; } return $this; } }