| Methods |
public
|
__construct(list<non-empty-string> $values = [])
|
#
|
public
static
|
parse(?string $scope): self
Parses a space-delimited scope parameter, treating an absent or blank one as the empty set. A segment that is not an RFC 6749 scope-token is dropped, so never build the required side of a
containsAll() grant decision from this.
Parses a space-delimited scope parameter, treating an absent or blank one as the empty set. A segment that is not an RFC 6749 scope-token is dropped, so never build the required side of a
containsAll() grant decision from this.
|
#
|
public
static
|
fromList(list<string> $values): self
Builds a set from peer-supplied values, dropping each that is not an RFC 6749 scope-token.
Builds a set from peer-supplied values, dropping each that is not an RFC 6749 scope-token.
|
#
|
public
|
mergeWith(self $other): self
Accumulates another set onto this one, keeping this set's values first.
Accumulates another set onto this one, keeping this set's values first.
|
#
|
public
|
contains(string $scope): bool
|
#
|
public
|
without(string $scope): self
This set with one value removed, whether or not it was present.
This set with one value removed, whether or not it was present.
|
#
|
public
|
containsAll(self $other): bool
|
#
|
public
|
toParameter(): ?string
Renders the set as a scope parameter, or null when the set is empty and the parameter is omitted.
Renders the set as a scope parameter, or null when the set is empty and the parameter is omitted.
|
#
|