Convert comments to phpdoc

This commit is contained in:
2021-01-30 18:26:31 +03:00
parent e1cca2d3eb
commit 930314f1ac
2 changed files with 74 additions and 28 deletions

View File

@@ -12,47 +12,72 @@ namespace Nsq\Config;
final class ConnectionConfig
{
public function __construct(
// Whether or not authorization is required by nsqd.
/**
* Whether or not authorization is required by nsqd.
*/
public bool $authRequired,
// Whether deflate compression is enabled for this connection or not.
/**
* Whether deflate compression is enabled for this connection or not.
*/
public bool $deflate,
// The deflate level. This value can be ignored if [deflate] is `false`.
/**
* The deflate level. This value can be ignored if [deflate] is `false`.
*/
public int $deflateLevel,
// The maximum deflate level supported by the server.
/**
* The maximum deflate level supported by the server.
*/
public int $maxDeflateLevel,
// The maximum value for message timeout.
/**
* The maximum value for message timeout.
*/
public int $maxMsgTimeout,
/*
/**
* Each nsqd is configurable with a max-rdy-count. If the consumer sends a RDY count that is outside
* of the acceptable range its connection will be forcefully closed.
*/
public int $maxRdyCount,
// The effective message timeout.
/**
* The effective message timeout.
*/
public int $msgTimeout,
// The size in bytes of the buffer nsqd will use when writing to this client.
/**
* The size in bytes of the buffer nsqd will use when writing to this client.
*/
public int $outputBufferSize,
// The timeout after which any data that nsqd has buffered will be flushed to this client.
/**
* The timeout after which any data that nsqd has buffered will be flushed to this client.
*/
public int $outputBufferTimeout,
/*
/**
* The sample rate for incoming data to deliver a percentage of all messages received to this connection.
* This only applies to subscribing connections. The valid range is between 0 and 99, where 0 means that all
* data is sent (this is the default). 1 means that 1% of the data is sent.
*/
public int $sampleRate,
// Whether snappy compression is enabled for this connection or not.
/**
* Whether snappy compression is enabled for this connection or not.
*/
public bool $snappy,
// Whether TLS is enabled for this connection or not.
/**
* Whether TLS is enabled for this connection or not.
*/
public bool $tls,
// The nsqd version.
/**
* The nsqd version.
*/
public string $version,
) {
}