Skip to content

Commit

Permalink
Merge branch '1.x' of github.com:lara-zeus/list-group into 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Feb 10, 2024
2 parents 256b35c + f671a94 commit 04f7388
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Infolists/ListEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function grouped(bool $condition = true): static
return $this;
}

public function isGrouped():bool
public function isGrouped(): bool
{
return $this->grouped;
}
Expand All @@ -49,7 +49,7 @@ public function list(bool $condition = true): static
return $this;
}

public function isList():bool
public function isList(): bool
{
return $this->list;
}
Expand Down
12 changes: 10 additions & 2 deletions src/Item/ListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,30 @@

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
{
return new ListItem();
}

public function id(int|string $id): ListItem
public function id(int | string $id): ListItem
{
$this->id = $id;

Expand Down

0 comments on commit 04f7388

Please sign in to comment.