1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-06-11 00:13:14 +02:00
Files
Test-Miroir/SourceQuery/Rcon/AbstractRcon.php
T
Anthony Birkett d9bab8aa25 Remove engine from the Sockets.
Docblock changes.
Reorder methods to be logical.
2021-05-31 11:52:18 +01:00

40 lines
809 B
PHP

<?php
declare(strict_types=1);
/**
* @author Pavel Djundik
*
* @link https://xpaw.me
* @link https://github.com/xPaw/PHP-Source-Query
*
* @license GNU Lesser General Public License, version 2.1
*
* @internal
*/
namespace xPaw\SourceQuery\Rcon;
use xPaw\SourceQuery\Buffer;
use xPaw\SourceQuery\Exception\AuthenticationException;
use xPaw\SourceQuery\Exception\InvalidPacketException;
abstract class AbstractRcon implements RconInterface
{
/**
* @throws AuthenticationException
* @throws InvalidPacketException
*
* @return Buffer
*/
abstract protected function read(): Buffer;
/**
* @param int|null $header
* @param string $string
*
* @return bool
*/
abstract protected function write(?int $header, string $string = ''): bool;
}