mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 19:07:00 +01:00
19 lines
390 B
PHP
19 lines
390 B
PHP
|
<?php
|
||
|
declare(strict_types = 1);
|
||
|
|
||
|
namespace Psalm\LanguageServer;
|
||
|
|
||
|
use Psalm\LanguageServer\Message;
|
||
|
use Sabre\Event\Promise;
|
||
|
|
||
|
interface ProtocolWriter
|
||
|
{
|
||
|
/**
|
||
|
* Sends a Message to the client
|
||
|
*
|
||
|
* @param Message $msg
|
||
|
* @return Promise Resolved when the message has been fully written out to the output stream
|
||
|
*/
|
||
|
public function write(Message $msg): Promise;
|
||
|
}
|