2016-09-02 19:13:30 +00:00
|
|
|
<?php
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
namespace LanguageServer;
|
|
|
|
|
|
|
|
use LanguageServer\Client\TextDocument;
|
2016-09-30 09:30:08 +00:00
|
|
|
use LanguageServer\Client\Window;
|
2016-09-02 19:13:30 +00:00
|
|
|
|
|
|
|
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
|
|
|
private $protocolWriter;
|
|
|
|
|
|
|
|
public function __construct(ProtocolWriter $writer)
|
|
|
|
{
|
|
|
|
$this->protocolWriter = $writer;
|
|
|
|
$this->textDocument = new TextDocument($writer);
|
2016-09-30 09:30:08 +00:00
|
|
|
$this->window = new Window($writer);
|
2016-09-02 19:13:30 +00:00
|
|
|
}
|
|
|
|
}
|