ProjectPermission
extends BaseModel
in package
Roles a user or team has in one project.
Table of Contents
Properties
Methods
- __construct() : mixed
- getId() : int
- getProject() : Project
- getRoles() : array<string|int, mixed>
- getTeams() : array<string|int, mixed>
Properties
$id
protected
int
$id
$project
protected
Project
$project
$roles
protected
array<string|int, mixed>
$roles
$teams
protected
array<string|int, mixed>
$teams
Methods
__construct()
public
__construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
getId()
public
getId() : int
Return values
intgetProject()
public
getProject() : Project
Return values
ProjectgetRoles()
public
getRoles() : array<string|int, mixed>
Return values
array<string|int, mixed> —list of name, permissions
getTeams()
public
getTeams() : array<string|int, mixed>
Return values
array<string|int, mixed> —teams that grant the user access to the project; empty for team permissions