label($label); $this->value($value); } /** * @return SmallStatBlock */ public static function make(string $label, string $value): static { return app(static::class, ['label' => $label, 'value' => $value]); } public function icon(string|BackedEnum|null $icon): static { $this->icon = $icon; return $this; } /** * @return SmallStatBlock */ private function value(string $value): static { $this->value = $value; return $this; } /** * @return scalar | Htmlable | Closure */ public function getValue(): mixed { return value($this->value); } }