Method | Description | |
---|---|---|
__construct ( string $permission ) | Creates a new statement, setting the $permission. | |
on ( string $resource ) : |
Sets the $resource on which the credential is given. | |
permission ( string $permission ) : |
Sets a permission for the query. | |
to ( string $role ) : |
Sets the $role having the credential on a resource. |
Method | Description | |
---|---|---|
getTokenFormatters ( ) : Array | Returns the formatters for this query's tokens. |
public __construct ( string $permission ) | ||
$permission | string |
protected getTokenFormatters ( ) : Array | ||
return | Array |
public permission ( string $permission ) : |
||
$permission | string | |
return |