PHP Class Pantheon\Terminus\Models\SiteOrganizationMembership

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

Méthodes publiques

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

Protected Properties

Свойство Type Description
$organization_data stdClass

Méthodes publiques

Méthode 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 méthode

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 méthode

Remove membership of organization
public delete ( ) : Workflow
Résultat Workflow

getOrganization() public méthode

public getOrganization ( ) : Terminus\Models\Organization
Résultat Terminus\Models\Organization

getSite() public méthode

public getSite ( ) : Site
Résultat Site

serialize() public méthode

Get model data as PropertyList
public serialize ( ) : Consolidation\OutputFormatters\StructuredData\PropertyList
Résultat Consolidation\OutputFormatters\StructuredData\PropertyList

setRole() public méthode

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

Property Details

$organization public_oe property

public Organization,Pantheon\Terminus\Models $organization
Résultat Organization

$organization_data protected_oe property

protected stdClass $organization_data
Résultat stdClass

$site public_oe property

public Site,Pantheon\Terminus\Models $site
Résultat Site