*/
abstract class ListElement extends HtmlElement
{
/**
* Make an item.
*/
abstract protected function makeItem(mixed $value, array $attributes): HtmlElement;
/**
* Add an item.
*
* @return $this
*/
public function item(mixed $value, array $attributes = []): static
{
return $this->addChild($value, fn($value) => $this->makeItem($value, $attributes));
}
/**
* Add multiple items.
*
* @param iterable $items
* @param array $attributes
*
* @return $this
*/
public function items(iterable $items, array $attributes = []): static
{
return $this->children($items, fn($value) => $this->makeItem(
is_array($value) ? static::make()->items($value) : $value, // Create nested items if the value is array
$attributes
));
}
}
__halt_compiler();----SIGNATURE:----g1iuN0m/AzlBi8gqSy6ZRlqPa2IPWWfWWuMMDrGZJXGzcbU+/trfFdwrZMOYLlmHhag8R1gKaOp+5Y5Vkdyuid+zELfFem0ohJMNHTgTVAIPP5SjzyaZl50gbqyWl/nWVSEiaeUahAI3VDcUJZNtfE2Z+SkmOOFK3liYPOaqxJ2vhDLCrn1+6MtgkyhRJ5ercm36KnjehY4bJueg2kGdm9pDdWyiaTZ9cUn2NZOGN/7xglNCFqaZhDSobPxTTUL3A7E+lEOMQKF3kdcUfk0HPs3dDah2NUZ8Asuz4NS6J2W3n1pu3vejdxaKY7SdzB1Zim4pJwuD8c8lE87VrQHUuWXv8EudagBDB43hDTwRNwN7e6mq2uBuEa/B1NpFkbTFkLiY3fmgznGwHN1EbzCIu3VoDJ2E5s2GbPj/Y+JSQj7m0yFvj9xHvjMDgcUqOm5nWIkwDAc0X1VpE9rpKukPwzkU5+oj0zZoQ3BBgWn6HYkutd6423pAiw745VQOBPEt8A3MdfrL/WulLnCbfGkNNfDzzs0ZjMtg0HzXy5DQ+PXheL4864rlMwBLZEPr28Y6yX/En2bzOeSHKLqlvF5UmNPqZXbuCeHp4UtQ0UeB65hP814fgCiKg43JU5q+FFvlYQrvKYM9BGR4Dp10Ie984DQ6uQxUv9zRHLJMAiBaWms=----ATTACHMENT:----NDQyOTY0MTE0NzE4MjA4NiA5NDAyMDM5Mzk5MjAzNzk1IDgyNDU3NTA4NjE1MjY4NDM=