Scope URI implementation

Simple way to represent configurable privileges in an OAuth friendly way. For our case, they look like this:

scope::?

For example: scope:client:incoming?name=jonas

author Aleksey Korzun
package Library
subpackage Twilio\Utility\Capability

 Methods

Class constructor

__construct(string $service, string $privilege, string[] $parameters) 

Parameters

$service

string

$privilege

string

$parameters

string[]

Parse a scope URI into a ScopeURI object

parse(string $uri) : \Twilio\Utility\Capability\Scope
Static

Parameters

$uri

string

the scope URI

Exceptions

\UnexpectedValueException

Returns

Ouput scope

toString() : string

Returns

string

 Properties

 

$parameters : string[]
 

$privilege : string
 

$service : string