2016-09-02 19:13:30 +00:00
|
|
|
<?php
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
namespace LanguageServer;
|
|
|
|
|
|
|
|
class LanguageClient
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Handles textDocument/* methods
|
|
|
|
*
|
|
|
|
* @var Client\TextDocument
|
|
|
|
*/
|
|
|
|
public $textDocument;
|
|
|
|
|
2016-09-30 09:30:08 +00:00
|
|
|
/**
|
|
|
|
* Handles window/* methods
|
|
|
|
*
|
|
|
|
* @var Client\Window
|
|
|
|
*/
|
|
|
|
public $window;
|
2016-09-02 19:13:30 +00:00
|
|
|
|
2016-10-31 10:47:21 +00:00
|
|
|
public function __construct(ProtocolReader $reader, ProtocolWriter $writer)
|
2016-09-02 19:13:30 +00:00
|
|
|
{
|
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);
|
2016-09-02 19:13:30 +00:00
|
|
|
}
|
|
|
|
}
|