interface CredentialInterface (View source)

Methods

permission(string $permission)

Sets the $permission to grant/revoke.

on(string $resource)

Sets the $resource on which a credential is granted/revoked.

to(string $role)

Sets the user/group subject of the credential addition/removal.

Details

Credential permission(string $permission)

Sets the $permission to grant/revoke.

Parameters

string $permission

Return Value

Credential

Credential on(string $resource)

Sets the $resource on which a credential is granted/revoked.

Parameters

string $resource

Return Value

Credential

Credential to(string $role)

Sets the user/group subject of the credential addition/removal.

Parameters

string $role

Return Value

Credential