File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace CodeWithDennis \SimpleAlert \Components \Concerns ;
44
5+ use BackedEnum ;
56use Closure ;
67use CodeWithDennis \SimpleAlert \Components \Enums \IconAnimation ;
78use Illuminate \Contracts \Support \Htmlable ;
89
910trait HasIcon
1011{
11- protected string |Htmlable |Closure |null $ icon = null ;
12+ protected string |BackedEnum | Htmlable |Closure |null $ icon = null ;
1213
1314 protected Closure |IconAnimation |null $ iconAnimation = null ;
1415
15- public function icon (string |Htmlable |Closure |null $ icon , Closure |IconAnimation |null $ animation = null ): static
16+ public function icon (string |BackedEnum | Htmlable |Closure |null $ icon , Closure |IconAnimation |null $ animation = null ): static
1617 {
1718 $ this ->icon = $ icon ;
1819 $ this ->iconAnimation = $ animation ;
@@ -25,7 +26,7 @@ public function getIconAnimation(): ?string
2526 return $ this ->evaluate ($ this ->iconAnimation )?->value ?? null ;
2627 }
2728
28- public function getIcon (): ? string
29+ public function getIcon (): BackedEnum | string | null
2930 {
3031 return $ this ->evaluate ($ this ->icon );
3132 }
You can’t perform that action at this time.
0 commit comments