label = $label; /** @psalm-var string $name */ $name = \preg_replace('/[^a-z0-9]+/', '_', \strtolower($name ?? $label)); $this->name = $name; $this->implicit_label = $implicit_label; } public function getLabel(): string { return $this->label; } public function getName(): string { return $this->name; } public function labelIsImplicit(): bool { return $this->implicit_label; } public function getHint(): ?string { return null; } }