ZoneWriteResult
final class ZoneWriteResult (View source)
Outcome of a zone write (create, delete, metadata, owner or template change).
Callers read the reason and the refusal from here instead of the session; success carries the zone id.
Methods
static ZoneWriteResult
ok(int $zoneId)
No description
static ZoneWriteResult
failure(string $message, Refusal $refusal = Refusal::INVALID_INPUT)
No description
static ZoneWriteResult
forbidden(string $message)
No description
static ZoneWriteResult
static ZoneWriteResult
backendFailure(string $message)
No description
static ZoneWriteResult
backendRejected(string $message)
The backend answered and refused a write on its own validation; the message carries its reason.
Details
static ZoneWriteResult
ok(int $zoneId)
No description
static ZoneWriteResult
failure(string $message, Refusal $refusal = Refusal::INVALID_INPUT)
No description
static ZoneWriteResult
forbidden(string $message)
No description
static ZoneWriteResult
limitReached(ZoneLimitBreach $breach)
Refused because an owner would go past their zone limit.
static ZoneWriteResult
backendFailure(string $message)
No description
static ZoneWriteResult
backendRejected(string $message)
The backend answered and refused a write on its own validation; the message carries its reason.