1
0
Fork 0
php-language-server/src/Protocol/CompletionList.php

36 lines
798 B
PHP
Raw Normal View History

2016-08-22 15:32:31 +00:00
<?php
2016-08-22 20:40:16 +00:00
namespace LanguageServer\Protocol;
2016-08-22 15:32:31 +00:00
/**
2016-08-22 20:40:16 +00:00
* Represents a collection of completion items to be presented in
2016-08-22 15:32:31 +00:00
* the editor.
*/
class CompletionList
{
/**
* This list it not complete. Further typing should result in recomputing this
* list.
*
* @var bool
*/
public $isIncomplete;
/**
* The completion items.
*
* @var CompletionItem[]
*/
public $items;
/**
* @param CompletionItem[] $items The completion items.
* @param bool $isIncomplete This list it not complete. Further typing should result in recomputing this list.
*/
public function __construct(array $items = [], bool $isIncomplete = false)
{
$this->items = $items;
$this->isIncomplete = $isIncomplete;
}
2016-08-22 15:32:31 +00:00
}