PHP Class Pantheon\Terminus\Models\OrganizationUserMembership

Inheritance: extends TerminusModel, implements League\Container\ContainerAwareInterface, use trait League\Container\ContainerAwareTrait
Exibir arquivo Open project: pantheon-systems/terminus Class Usage Examples

Public Properties

Property Type Description
$organization Organization
$user User

Protected Properties

Property Type Description
$user_data stdClass

Public Methods

Method Description
__construct ( object $attributes = null, array $options = [] ) Object constructor
delete ( ) : Workflow Removes a user from this organization
getOrganization ( ) : Organization
getUser ( ) : User Get the user for this membership
serialize ( )
setRole ( string $role ) : Workflow Sets the user's role within this organization

Method Details

__construct() public method

Object constructor
public __construct ( object $attributes = null, array $options = [] )
$attributes object Attributes of this model
$options array Options with which to configure this model

delete() public method

Removes a user from this organization
public delete ( ) : Workflow
return Workflow

getOrganization() public method

public getOrganization ( ) : Organization
return Organization

getUser() public method

Get the user for this membership
public getUser ( ) : User
return User

serialize() public method

public serialize ( )

setRole() public method

Sets the user's role within this organization
public setRole ( string $role ) : Workflow
$role string Role for this user to take in the organization
return Workflow

Property Details

$organization public_oe property

public Organization,Pantheon\Terminus\Models $organization
return Organization

$user public_oe property

public User,Pantheon\Terminus\Models $user
return User

$user_data protected_oe property

protected stdClass $user_data
return stdClass