mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 19:07:00 +01:00
25 lines
486 B
PHP
25 lines
486 B
PHP
|
<?php
|
||
|
declare(strict_types = 1);
|
||
|
|
||
|
namespace Psalm\LanguageServer;
|
||
|
|
||
|
use JsonMapper;
|
||
|
|
||
|
class LanguageClient
|
||
|
{
|
||
|
/**
|
||
|
* Handles textDocument/* methods
|
||
|
*
|
||
|
* @var Client\TextDocument
|
||
|
*/
|
||
|
public $textDocument;
|
||
|
|
||
|
public function __construct(ProtocolReader $reader, ProtocolWriter $writer)
|
||
|
{
|
||
|
$handler = new ClientHandler($reader, $writer);
|
||
|
$mapper = new JsonMapper;
|
||
|
|
||
|
$this->textDocument = new Client\TextDocument($handler, $mapper);
|
||
|
}
|
||
|
}
|