final class ZoneOwnershipInput (View source)

The owner choice a zone creation request made, as ZoneCreateOwnershipResolver reads it: the user owner may be omitted (the caller becomes owner), given as null (no user owner) or given as an id; the groups may be omitted or listed.

Methods

__construct(bool $ownerSupplied = false, int|null $ownerUserId = null, array|null $groupIds = null)

No description

ownerOmitted(array|null $groupIds = null)

No description

owner(int|null $ownerUserId, array|null $groupIds = null)

No description

Details

__construct(bool $ownerSupplied = false, int|null $ownerUserId = null, array|null $groupIds = null)

No description

Parameters

bool $ownerSupplied

Whether the request named a user owner at all

int|null $ownerUserId

The user owner named; null when omitted or explicitly none

array|null $groupIds

The group owners named; null when omitted

static ZoneOwnershipInput ownerOmitted(array|null $groupIds = null)

No description

Parameters

array|null $groupIds

Return Value

ZoneOwnershipInput

static ZoneOwnershipInput owner(int|null $ownerUserId, array|null $groupIds = null)

No description

Parameters

int|null $ownerUserId
array|null $groupIds

Return Value

ZoneOwnershipInput