1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 19:07:00 +01:00
psalm/src/Psalm/Internal/LanguageServer/LanguageClient.php

27 lines
515 B
PHP
Raw Normal View History

<?php
declare(strict_types = 1);
2018-11-06 03:57:36 +01:00
namespace Psalm\Internal\LanguageServer;
use JsonMapper;
/**
* @internal
*/
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);
}
}