name($name); } public static function make(string $name): static { $static = app(static::class, ['name' => $name]); $static->configure(); return $static; } public function getAlignmentClass(): string { return match ($this->getAlignment()) { Alignment::Center, Alignment::Justify, Alignment::Between => 'text-center', Alignment::Left, Alignment::Start => 'text-left', Alignment::Right, Alignment::End => 'text-right', default => '', }; } }