trait MiddlewareCommon (View source)

Abstract flag-aware middleware

Methods

$this
setDisableFlag(int $disableFlag)

Set flag to use to disable this middleware

int
getDisableFlag()

Get flag to use to disable this middleware

array
__serialize()

No description

void
__unserialize(array $data)

No description

string
serialize() deprecated

The __serialize() magic method will be automatically used instead of this

unserialize(string $serialized) deprecated

The __unserialize() magic method will be automatically used instead of this almost all the time This method will be automatically used if existing serialized data was not saved as an associative array and the PHP version used in less than PHP 9.0

Details

$this setDisableFlag(int $disableFlag)

Set flag to use to disable this middleware

Parameters

int $disableFlag

Return Value

$this

int getDisableFlag()

Get flag to use to disable this middleware

Return Value

int

array __serialize()

Return Value

array

void __unserialize(array $data)

Parameters

array $data

Return Value

void

string serialize() deprecated

deprecated 1.12.0 Will be replaced with __serialize()

The __serialize() magic method will be automatically used instead of this

Return Value

string

unserialize(string $serialized) deprecated

deprecated 1.12.0 Will be replaced with __unserialize()

The __unserialize() magic method will be automatically used instead of this almost all the time This method will be automatically used if existing serialized data was not saved as an associative array and the PHP version used in less than PHP 9.0

Parameters

string $serialized