PHP Class Pantheon\Terminus\Models\SiteOrganizationMembership

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

Public Properties

Property Type Description
$organization Organization
$site Site

Protected Properties

Property Type Description
$organization_data stdClass

Public Methods

Method Description
__construct ( object $attributes = null, array $options = [] ) Object constructor
delete ( ) : Workflow Remove membership of organization
getOrganization ( ) : Terminus\Models\Organization
getSite ( ) : Site
serialize ( ) : Consolidation\OutputFormatters\StructuredData\PropertyList Get model data as PropertyList
setRole ( string $role ) : Workflow Changes the role of the given member

Method Details

__construct() public method

Object constructor
public __construct ( object $attributes = null, array $options = [] )
$attributes object Attributes of this model
$options array Options to set as $this->key

delete() public method

Remove membership of organization
public delete ( ) : Workflow
return Workflow

getOrganization() public method

public getOrganization ( ) : Terminus\Models\Organization
return Terminus\Models\Organization

getSite() public method

public getSite ( ) : Site
return Site

serialize() public method

Get model data as PropertyList
public serialize ( ) : Consolidation\OutputFormatters\StructuredData\PropertyList
return Consolidation\OutputFormatters\StructuredData\PropertyList

setRole() public method

Changes the role of the given member
public setRole ( string $role ) : Workflow
$role string Desired role for this organization
return Workflow

Property Details

$organization public_oe property

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

$organization_data protected_oe property

protected stdClass $organization_data
return stdClass

$site public_oe property

public Site,Pantheon\Terminus\Models $site
return Site