Skip to content
docsv0.30.2

Needs

The authority this operation spends — scopes XOR a permission, never both. The exclusion is not a style rule: an operation typed by both would have two answers to «may I», and composition (allOf/anyOf) is a deliberate future move rather than an implicit «both must pass». {@see \Milpa\Command\Operation} refuses that contradiction at construction, and this attribute hands it the same two fields, unchanged.

Needs::__construct()

public function __construct(array $scopes = [], ?string $permission = null):

Parameters

Parameters of __construct()
NameTypeDescription
$scopeslist<string>
$permission?string