*/ final class SeatCompletionProvider implements ProviderInterface { /** * @param list $seats */ public function __construct( private readonly array $seats, ) { } public function getCompletions(string $currentValue): array { return array_values(array_filter( $this->seats, static fn (string $seat): bool => str_starts_with($seat, $currentValue), )); } }