1
0
Fork 0
php-language-server/src/LanguageClient.php

30 lines
575 B
PHP
Raw Normal View History

<?php
declare(strict_types = 1);
namespace LanguageServer;
class LanguageClient
{
/**
* Handles textDocument/* methods
*
* @var Client\TextDocument
*/
public $textDocument;
/**
* Handles window/* methods
*
* @var Client\Window
*/
public $window;
2016-10-31 10:47:21 +00:00
public function __construct(ProtocolReader $reader, ProtocolWriter $writer)
{
2016-10-31 10:47:21 +00:00
$handler = new ClientHandler($reader, $writer);
$this->textDocument = new Client\TextDocument($handler);
$this->window = new Client\Window($handler);
}
}