API / Minn\Runtime / Refusal

Refusal final readonly class

Minn\Runtime\Refusal · public/minn/src/Minn/Runtime/Refusal.php · 6 lines

A refused operation, the way plugin code expects to read it: a code, a message, optional data. The facade turns it into WP_Error.

Constants and properties

propreadonly string $code

Promoted from the constructor.

propreadonly string $message

Promoted from the constructor.

propreadonly mixed $data

Promoted from the constructor.

Public

new__construct(string $code, string $message, mixed $data = NULL)#