Documentation

RemoveTeamMember
in package
implements RemovesTeamMembers

Interfaces, Classes, Traits and Enums

RemovesTeamMembers

Table of Contents

remove()  : void
Remove the team member from the given team.
authorize()  : void
Authorize that the user can remove the team member.
ensureUserDoesNotOwnTeam()  : void
Ensure that the currently authenticated user does not own the team.

Methods

remove()

Remove the team member from the given team.

public remove(mixed $user, mixed $team, mixed $teamMember) : void
Parameters
$user : mixed
$team : mixed
$teamMember : mixed
Return values
void

authorize()

Authorize that the user can remove the team member.

protected authorize(mixed $user, mixed $team, mixed $teamMember) : void
Parameters
$user : mixed
$team : mixed
$teamMember : mixed
Return values
void

ensureUserDoesNotOwnTeam()

Ensure that the currently authenticated user does not own the team.

protected ensureUserDoesNotOwnTeam(mixed $teamMember, mixed $team) : void
Parameters
$teamMember : mixed
$team : mixed
Return values
void

Search results