diff --git a/src/Infolists/ListEntry.php b/src/Infolists/ListEntry.php index ee2fea2..cf62593 100644 --- a/src/Infolists/ListEntry.php +++ b/src/Infolists/ListEntry.php @@ -37,7 +37,7 @@ public function grouped(bool $condition = true): static return $this; } - public function isGrouped():bool + public function isGrouped(): bool { return $this->grouped; } @@ -49,7 +49,7 @@ public function list(bool $condition = true): static return $this; } - public function isList():bool + public function isList(): bool { return $this->list; } diff --git a/src/Item/ListItem.php b/src/Item/ListItem.php index e4c4bdf..ed85559 100644 --- a/src/Item/ListItem.php +++ b/src/Item/ListItem.php @@ -6,14 +6,22 @@ final class ListItem implements Arrayable { - protected int|string $id; + protected int | string $id; + protected string $label = ''; + protected ?string $icon = null; + protected ?string $iconSize = null; + protected ?string $color = null; + protected ?string $iconColor = null; + protected ?string $url = null; + protected ?string $badge = null; + protected ?bool $openInNewTab = false; public static function make(): ListItem @@ -21,7 +29,7 @@ public static function make(): ListItem return new ListItem(); } - public function id(int|string $id): ListItem + public function id(int | string $id): ListItem { $this->id = $id;