src/Phan/LanguageServer/LanguageClient.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Phan\LanguageServer;

/**
 * Source: https://github.com/felixfbecker/php-language-server/tree/master/src/LanguageClient.php
 * See ../../../LICENSE.LANGUAGE_SERVER
 * @phan-immutable
 */
class LanguageClient
{
    /**
     * Handles textDocument/* methods
     *
     * @var Client\TextDocument
     */
    public $textDocument;

    public function __construct(ProtocolReader $reader, ProtocolWriter $writer)
    {
        $handler = new ClientHandler($reader, $writer);

        $this->textDocument = new Client\TextDocument($handler);
    }
}