final class SupermasterWriteResult (View source)

Outcome of a supermaster write. Callers read the reason, its code and the refusal from here instead of a message side channel.

Constants

ERR_INVALID_IP

ERR_INVALID_HOSTNAME

ERR_INVALID_ACCOUNT

ERR_EXISTS

ERR_NOT_FOUND

ERR_BACKEND

Methods

ok()

No description

refused(string $code, string $message, Refusal $refusal = Refusal::INVALID_INPUT)

No description

Details

static SupermasterWriteResult ok()

No description

Return Value

SupermasterWriteResult

static SupermasterWriteResult refused(string $code, string $message, Refusal $refusal = Refusal::INVALID_INPUT)

No description

Parameters

string $code
string $message
Refusal $refusal

Return Value

SupermasterWriteResult