PayloadLimitOptions
in package
FinalYes
Tags
Table of Contents
Constants
- DEFAULT_MEMO_SIZE_WARNING : mixed = 2 * 1024
- DEFAULT_PAYLOAD_SIZE_WARNING : mixed = 512 * 1024
Properties
- $memoSizeWarning : int|null
- $payloadSizeWarning : int|null
Methods
- __construct() : mixed
- disabled() : self
- isEnabled() : bool
- new() : self
- withMemoSizeWarning() : self
- withPayloadSizeWarning() : self
- assertPositive() : void
Constants
DEFAULT_MEMO_SIZE_WARNING
public
mixed
DEFAULT_MEMO_SIZE_WARNING
= 2 * 1024
DEFAULT_PAYLOAD_SIZE_WARNING
public
mixed
DEFAULT_PAYLOAD_SIZE_WARNING
= 512 * 1024
Properties
$memoSizeWarning read-only
public
int|null
$memoSizeWarning
= self::DEFAULT_MEMO_SIZE_WARNING
$payloadSizeWarning read-only
public
int|null
$payloadSizeWarning
= self::DEFAULT_PAYLOAD_SIZE_WARNING
Methods
__construct()
public
__construct([null|positive-int $payloadSizeWarning = self::DEFAULT_PAYLOAD_SIZE_WARNING ][, null|positive-int $memoSizeWarning = self::DEFAULT_MEMO_SIZE_WARNING ]) : mixed
Parameters
- $payloadSizeWarning : null|positive-int = self::DEFAULT_PAYLOAD_SIZE_WARNING
- $memoSizeWarning : null|positive-int = self::DEFAULT_MEMO_SIZE_WARNING
disabled()
public
static disabled() : self
Tags
Return values
selfisEnabled()
public
isEnabled() : bool
Tags
Return values
boolnew()
public
static new() : self
Tags
Return values
selfwithMemoSizeWarning()
public
withMemoSizeWarning(null|positive-int $bytes) : self
Parameters
- $bytes : null|positive-int
Tags
Return values
selfwithPayloadSizeWarning()
public
withPayloadSizeWarning(null|positive-int $bytes) : self
Parameters
- $bytes : null|positive-int
Tags
Return values
selfassertPositive()
private
static assertPositive(int|null $value, string $name) : void
Parameters
- $value : int|null
- $name : string