PHP Class Pantheon\Terminus\Collections\OrganizationUserMemberships

Inheritance: extends TerminusCollection
Afficher le fichier Open project: pantheon-systems/terminus Class Usage Examples

Méthodes publiques

Свойство Type Description
$organization Organization

Protected Properties

Свойство Type Description
$collected_class string
$paged boolean

Méthodes publiques

Méthode Description
__construct ( array $options = [] ) Instantiates the collection, sets param members as properties
create ( string $uuid, string $role ) : Workflow Adds a user to this organization
get ( string $id ) : OrganizationUserMembership Retrieves models by either user ID, email address, or full name
getOrganization ( ) : Organization

Method Details

__construct() public méthode

Instantiates the collection, sets param members as properties
public __construct ( array $options = [] )
$options array To be set to $this->key

create() public méthode

Adds a user to this organization
public create ( string $uuid, string $role ) : Workflow
$uuid string UUID of user user to add to this organization
$role string Role to assign to the new member
Résultat Workflow $workflow

get() public méthode

Retrieves models by either user ID, email address, or full name
public get ( string $id ) : OrganizationUserMembership
$id string Either a user ID, email address, or full name
Résultat OrganizationUserMembership

getOrganization() public méthode

public getOrganization ( ) : Organization
Résultat Organization

Property Details

$collected_class protected_oe property

protected string $collected_class
Résultat string

$organization public_oe property

public Organization $organization
Résultat Organization

$paged protected_oe property

protected bool $paged
Résultat boolean