class ProtectedResource implements Arrayable, Jsonable, Transient

Methods

__construct(string $id, string $description)

Create a new resource instance.

static void
validateIdentifiers(array $resources)

Validate the identifiers in a resource catalog.

array
toArray()

Get the instance as an array.

string
toJson(int $options = 0)

Convert the object to its JSON representation.

Details

at line 21
__construct(string $id, string $description)

Create a new resource instance.

Parameters

string $id
string $description

at line 32
static void validateIdentifiers(array $resources)

Validate the identifiers in a resource catalog.

Parameters

array $resources

Return Value

void

at line 48
array toArray()

Get the instance as an array.

Return Value

array

at line 59
string toJson(int $options = 0)

Convert the object to its JSON representation.

Parameters

int $options

Return Value

string