icon = $icon; } public function class(string $class): self { $this->attributes['class'] = $class; return $this; } public function __toString(): string { return str_replace('attributes), $this->icon); } }