| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace LaravelUi5\OData\Protocol\Planning; |
| 6: | |
| 7: | final readonly class SelectList |
| 8: | { |
| 9: | /** @param list<SelectItem> $items Empty list means select all (*). */ |
| 10: | public function __construct(public readonly array $items = []) {} |
| 11: | |
| 12: | public function isSelectAll(): bool |
| 13: | { |
| 14: | return $this->items === []; |
| 15: | } |
| 16: | } |
| 17: |