| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ListItem extends Component |
||
| 10 | { |
||
| 11 | public string $uuid; |
||
| 12 | |||
| 13 | public function __construct( |
||
| 14 | public object|array $item, |
||
| 15 | public string $avatar = 'avatar', |
||
| 16 | public string $value = 'name', |
||
| 17 | public ?string $subValue = '', |
||
| 18 | public ?bool $noSeparator = false, |
||
| 19 | public ?bool $noHover = false, |
||
| 20 | public ?string $link = null, |
||
| 21 | |||
| 22 | // Slots |
||
| 23 | public mixed $actions = null, |
||
| 24 | ) { |
||
| 25 | $this->uuid = md5(serialize($this)); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get the view / contents that represent the component. |
||
| 30 | */ |
||
| 31 | public function render(): View|Closure|string |
||
| 34 | } |
||
| 35 | } |
||
| 36 |