Files
development/vendor/felixfbecker/language-server-protocol/src/CompletionContext.php
2023-03-09 16:27:10 +09:00

32 lines
783 B
PHP

<?php
namespace LanguageServerProtocol;
/**
* Contains additional information about the context in which a completion request is triggered.
*/
class CompletionContext
{
/**
* How the completion was triggered.
*
* @var int
*/
public $triggerKind;
/**
* The trigger character (a single character) that has trigger code complete.
* Is null if `triggerKind !== CompletionTriggerKind::TRIGGER_CHARACTER`
*
* @var string|null
*/
public $triggerCharacter;
public function __construct(int $triggerKind = null, string $triggerCharacter = null)
{
/** @psalm-suppress PossiblyNullPropertyAssignmentValue */
$this->triggerKind = $triggerKind;
$this->triggerCharacter = $triggerCharacter;
}
}