PHP Class Pantheon\Terminus\Collections\SiteUserMemberships

Inheritance: extends SiteOwnedCollection
Show file Open project: pantheon-systems/terminus Class Usage Examples

Protected Properties

Property Type Description
$collected_class string
$paged boolean
$url string

Public Methods

Method Description
create ( string $email, string $role ) : Workflow Adds this user as a member to the site
get ( string $id ) : SiteUserMembership Retrieves the membership of the given UUID or email

Method Details

create() public method

Adds this user as a member to the site
public create ( string $email, string $role ) : Workflow
$email string Email of team member to add
$role string Role to assign to the new user
return Workflow

get() public method

Retrieves the membership of the given UUID or email
public get ( string $id ) : SiteUserMembership
$id string UUID or email of desired user
return SiteUserMembership

Property Details

$collected_class protected property

protected string $collected_class
return string

$paged protected property

protected bool $paged
return boolean

$url protected property

protected string $url
return string