1
0
Fork 0
php-language-server/src/ProtocolWriter.php

19 lines
387 B
PHP
Raw Normal View History

2016-08-25 13:27:14 +00:00
<?php
declare(strict_types = 1);
namespace LanguageServer;
use LanguageServer\Protocol\Message;
2016-10-31 10:47:21 +00:00
use Sabre\Event\Promise;
2016-08-25 13:27:14 +00:00
interface ProtocolWriter
{
2016-10-31 10:47:21 +00:00
/**
* 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;
2016-08-25 13:27:14 +00:00
}